summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2013-02-20 15:44:25 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2013-02-20 15:44:25 -0800
commit1c4e16afdf96db75e5e68c6987792f44258e5602 (patch)
tree18fbbd56461dc3ad349098f071feee3a91f35768 /lib
parentfb172bc702726959fa0269e24700d9e95489e32b (diff)
downloadspack-1c4e16afdf96db75e5e68c6987792f44258e5602.tar.gz
spack-1c4e16afdf96db75e5e68c6987792f44258e5602.tar.bz2
spack-1c4e16afdf96db75e5e68c6987792f44258e5602.tar.xz
spack-1c4e16afdf96db75e5e68c6987792f44258e5602.zip
Fixed bug in parallel make option.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/Package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/Package.py b/lib/spack/spack/Package.py
index 7d1ef169ff..3ebf8cff4d 100644
--- a/lib/spack/spack/Package.py
+++ b/lib/spack/spack/Package.py
@@ -65,9 +65,9 @@ class MakeExecutable(Executable):
def __call__(self, *args, **kwargs):
parallel = kwargs.get('parallel', self.parallel)
- env_parallel = not env_flag(SPACK_NO_PARALLEL_MAKE)
+ disable_parallel = env_flag(SPACK_NO_PARALLEL_MAKE)
- if parallel and env_parallel:
+ if parallel and not disable_parallel:
args += ("-j%d" % multiprocessing.cpu_count(),)
super(MakeExecutable, self).__call__(*args, **kwargs)