Fixed bug in parallel make option.
This commit is contained in:
		@@ -65,9 +65,9 @@ def __init__(self, name, parallel):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def __call__(self, *args, **kwargs):
 | 
					    def __call__(self, *args, **kwargs):
 | 
				
			||||||
        parallel = kwargs.get('parallel', self.parallel)
 | 
					        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(),)
 | 
					            args += ("-j%d" % multiprocessing.cpu_count(),)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        super(MakeExecutable, self).__call__(*args, **kwargs)
 | 
					        super(MakeExecutable, self).__call__(*args, **kwargs)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user