Skip to content
Snippets Groups Projects
Commit cb49acb1 authored by tibbe's avatar tibbe
Browse files

Merge branch 'master' of github.com:haskell/cabal

parents 3118a07a 43880500
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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")
......
......@@ -135,6 +135,10 @@ mainWorker args = topHandler $
putStr (help pname)
putStr $ "\nYou 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment