summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Bootstrap.hs')
-rw-r--r--src/Propellor/Bootstrap.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs
index 170c85d6..04f23f85 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -80,7 +80,7 @@ buildCommand bs = intercalate " && " (go (getBuilder bs))
where
go Cabal =
[ "cabal configure"
- , "cabal build propellor-config"
+ , "cabal build -j1 propellor-config"
, "ln -sf dist/build/propellor-config/propellor-config propellor"
]
go Stack =
@@ -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