From 1c4e16afdf96db75e5e68c6987792f44258e5602 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 20 Feb 2013 15:44:25 -0800 Subject: [PATCH] Fixed bug in parallel make option. --- lib/spack/spack/Package.py | 4 ++-- 1 file 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 @@ def __init__(self, name, parallel): 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)