Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
cb49acb1
Commit
cb49acb1
authored
12 years ago
by
tibbe
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:haskell/cabal
parents
3118a07a
43880500
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+5
-0
5 additions, 0 deletions
.gitignore
Cabal/Distribution/Simple/GHC.hs
+3
-1
3 additions, 1 deletion
Cabal/Distribution/Simple/GHC.hs
cabal-install/src/Main.hs
+5
-1
5 additions, 1 deletion
cabal-install/src/Main.hs
with
13 additions
and
2 deletions
.gitignore
+
5
−
0
View file @
cb49acb1
...
...
@@ -2,6 +2,7 @@
cabal-dev/
Cabal/dist/
Cabal/tests/Setup
cabal-install/dist/
.hpc/
*.hi
...
...
@@ -23,3 +24,7 @@ Cabal/GNUmakefile
Cabal/dist-boot/
Cabal/dist-install/
Cabal/ghc.mk
# TAGS files
TAGS
This diff is collapsed.
Click to expand it.
Cabal/Distribution/Simple/GHC.hs
+
3
−
1
View file @
cb49acb1
...
...
@@ -814,7 +814,9 @@ buildExe verbosity _pkg_descr lbi
-- exeNameReal, the name that GHC really uses (with .exe on Windows)
let
exeNameReal
=
exeName'
<.>
(
if
null
$
takeExtension
exeName'
then
exeExtension
else
""
)
(
if
takeExtension
exeName'
/=
(
'.'
:
exeExtension
)
then
exeExtension
else
""
)
let
targetDir
=
pref
</>
exeName'
let
exeDir
=
targetDir
</>
(
exeName'
++
"-tmp"
)
...
...
This diff is collapsed.
Click to expand it.
cabal-install/src/Main.hs
+
5
−
1
View file @
cb49acb1
...
...
@@ -135,6 +135,10 @@ mainWorker args = topHandler $
putStr
(
help
pname
)
putStr
$
"
\n
You can edit the cabal configuration file to set defaults:
\n
"
++
" "
++
configFile
++
"
\n
"
exists
<-
doesFileExist
configFile
when
(
not
exists
)
$
putStrLn
$
"This file will be generated with sensible "
++
"defaults if you run 'cabal update'."
printOptionsList
=
putStr
.
unlines
printErrors
errs
=
die
$
intercalate
"
\n
"
errs
printNumericVersion
=
putStrLn
$
display
Paths_cabal_install
.
version
...
...
@@ -242,7 +246,7 @@ build :: Verbosity -> FilePath -> BuildFlags -> [String] -> IO ()
build
verbosity
distPref
buildFlags
extraArgs
=
setupWrapper
verbosity
setupOptions
Nothing
buildCommand
(
const
buildFlags'
)
extraArgs
where
where
setupOptions
=
defaultSetupScriptOptions
{
useDistPref
=
distPref
}
buildFlags'
=
buildFlags
{
buildVerbosity
=
toFlag
verbosity
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment