Merge pull request #206 from marynate/PR-multijobs-build

Fixed #205 Race condition in build process
This commit is contained in:
reduz 2014-04-05 09:54:42 -03:00
commit 1278da71ea

View File

@ -11,7 +11,7 @@ import multiprocessing
# Enable aggresive compile mode if building on a multi core box
# only is we have not set the number of jobs already or we do
# not want it
if ARGUMENTS.get('spawn_jobs', 'yes') == 'yes' and \
if ARGUMENTS.get('spawn_jobs', 'no') == 'yes' and \
int(GetOption('num_jobs')) <= 1:
NUM_JOBS = multiprocessing.cpu_count()
if NUM_JOBS > 1: