diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-11-17 19:35:15 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-11-17 19:35:15 -0400 |
| commit | a251b56df70edf7b44b5a47397c11c60834d35d3 (patch) | |
| tree | 60403c75632a5c0765fbeee0919c4cbdb7a10488 /src | |
| parent | 32438c5df176c53c9d07b0c9cd7c8e07effd8d4b (diff) | |
run cabal build with -j1
In an arm chroot, ghc tends to hang when building in parallel,
this avoids that problem.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Bootstrap.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs index 170c85d6..f306e9a7 100644 --- a/src/Propellor/Bootstrap.hs +++ b/src/Propellor/Bootstrap.hs @@ -280,7 +280,9 @@ cabalBuild msys = do boolSystem "sh" [Param "-c", Param (depsCommand (Robustly Cabal) (Just sys))] <&&> cabal ["configure"] ) - cabal_build = cabal ["build", "propellor-config"] + -- The -j1 is to only run one job at a time -- in some situations, + -- eg in qemu, ghc does not run reliably in parallel. + cabal_build = cabal ["build", "-j1", "propellor-config"] stackBuild :: Maybe System -> IO Bool stackBuild _msys = do |
