Fixed bug in parallel make option.
This commit is contained in:
parent
fb172bc702
commit
1c4e16afdf
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue