hadrian/bootstrap/bootstrap.py: Add an option --jobs=N for parallel compilation
We at pkgsrc build GHC with an assumption that cabal-install is not available until we build GHC, cabal-install, and all of its dependencies. This means we need to regularly build Hadrian with a bootstrap source tarball. One of the problems is that bootstrap.py
does not support parallel compilation and is therefore a slow process.
This patch adds an option --jobs=N
(and -j N
) to bootstrap.py
so that we can bootstrap Hadrian parallelly.
-
if your MR may break existing programs (e.g. touches base
or causes the compiler to reject programs), please describe the expected breakage and add the user-facing label. This will run ghc/head.hackage> to characterise the effect of your change on Hackage. -
ensure that your commits are either individually buildable or squashed -
ensure that your commit messages describe what they do (referring to tickets using #NNNN
syntax when appropriate) -
have added source comments describing your change. For larger changes you likely should add a [Note][notes] and cross-reference it from the relevant places. -
add a [testcase to the testsuite][adding test]. -
updates the users guide if applicable -
mentions new features in the release notes for the next release