Fixed bug in parallel make option.

This commit is contained in:
Todd Gamblin 2013-02-20 15:44:25 -08:00
parent fb172bc702
commit 1c4e16afdf

View file

@ -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)