Add max-backjumps and reorder-goals

This commit is contained in:
Michael Snoyman 2013-05-20 12:58:27 +03:00
parent a52e8d67b4
commit 88cccc742d
2 changed files with 10 additions and 1 deletions

View File

@ -73,6 +73,8 @@ build settings' bp = do
$ "install"
: ("--cabal-lib-version=" ++ libVersion)
: "--build-log=logs/$pkg.log"
: "--max-backjumps=-1"
: "--reorder-goals"
: "-j"
: concat
[ bpPackageList bp

View File

@ -22,7 +22,14 @@ checkPlan bp = do
_ <- checkCabalVersion
putStrLn "Checking build plan"
(ec, dryRun', stderr) <- readProcessWithExitCode "cabal" (addCabalArgsOnlyGlobal $ "install":"--dry-run":bpPackageList bp) ""
(ec, dryRun', stderr) <- readProcessWithExitCode "cabal"
( addCabalArgsOnlyGlobal
$ "install"
: "--dry-run"
: "--max-backjumps=-1"
: "--reorder-goals"
: bpPackageList bp
) ""
when (ec /= ExitSuccess || "Warning:" `isPrefixOf` stderr) $ do
putStr stderr
putStr dryRun'