summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-07-14 23:45:58 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-07-14 23:45:58 -0700
commit0d308ca30fbd764393575c8d027f41b5aea1b571 (patch)
tree75825c2e98349a40784cb9e6feeabc2956e28ff6 /lib
parent2e905992830b9f672fc35ac10c93e6dd2a8749d8 (diff)
downloadspack-0d308ca30fbd764393575c8d027f41b5aea1b571.tar.gz
spack-0d308ca30fbd764393575c8d027f41b5aea1b571.tar.bz2
spack-0d308ca30fbd764393575c8d027f41b5aea1b571.tar.xz
spack-0d308ca30fbd764393575c8d027f41b5aea1b571.zip
Fix regression of install -j.
Diffstat (limited to 'lib')
-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