summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py
index 5c81d3128e..3507807373 100644
--- a/lib/spack/spack/package.py
+++ b/lib/spack/spack/package.py
@@ -832,6 +832,10 @@ class Package(object):
cleanup()
raise
+ # Set parallelism before starting build.
+ self.make_jobs = make_jobs
+
+ # Do the build.
spack.build_environment.fork(self, real_work)
# Once everything else is done, run post install hooks