summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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)