Commit e7ba03ab authored by Ben Gamari's avatar Ben Gamari 🐢

build-all changes

parent 6f8d34a7
......@@ -143,7 +143,7 @@ build = parallel coresPerBuild $ requires [checkout] $ task "build" run
runInCommitDir commit
$ setStderr (useHandleOpen hdl)
$ setStdout (useHandleOpen hdl)
$ proc ("hadrian" </> "build.cabal.sh") ["-j" <> show coresPerBuild]
$ proc ("hadrian" </> "build-cabal") ["-j" <> show coresPerBuild]
test :: Task
test = parallel coresPerBuild $ requires [build] $ task "test" run
......@@ -153,7 +153,7 @@ test = parallel coresPerBuild $ requires [build] $ task "test" run
runInCommitDir commit
$ setStderr (useHandleOpen hdl)
$ setStdout (useHandleOpen hdl)
$ proc ("hadrian" </> "build.cabal.sh")
$ proc ("hadrian" </> "build-cabal")
$ [ "-j" <> show coresPerBuild
, "--summary-metrics=" <> resultDir </> "test-metrics"
, "test"
......@@ -208,16 +208,21 @@ buildPackage name srcPath ghcPerfArgs hcArgs repeats =
$ setWorkingDir (commitWorkDir commit </> srcPath)
$ setStderr (useHandleOpen hdl)
$ setStdout (useHandleOpen hdl)
$ proc (ghcUtilsPath <> "ghc_perf.py")
$ proc (ghcUtilsPath </> "ghc_perf.py")
$ [ "-n", name'
, "-o", name'<>".json"
] ++ ghcPerfArgs ++
[ cwd </> commitGhcPath commit
[ "--"
, cwd </> commitGhcPath commit
, "-isrc", "-Iinclude", "-fforce-recomp"
, "-odir", tmpDir
, "-hidir", tmpDir
] ++ hcArgs
buildCabal :: Int -- ^ number of repetitions
-> Task
buildCabal = buildPackage "Cabal" "libraries/Cabal" [] []
runInCommitDir :: Commit -> ProcessConfig stdin stdout stderr -> IO ()
runInCommitDir commit =
runProcess_ . setWorkingDir (commitWorkDir commit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment