mirror of https://github.com/nodejs/node.git
Don't choose jobs based on processor
Leads to lots of builds with out-of-memory.pull/22966/head
parent
754fde7325
commit
9922e4e433
7
wscript
7
wscript
|
@ -18,12 +18,7 @@ blddir = 'build'
|
||||||
jobs=1
|
jobs=1
|
||||||
if os.environ.has_key('JOBS'):
|
if os.environ.has_key('JOBS'):
|
||||||
jobs = int(os.environ['JOBS'])
|
jobs = int(os.environ['JOBS'])
|
||||||
else:
|
|
||||||
try:
|
|
||||||
import multiprocessing
|
|
||||||
jobs = multiprocessing.cpu_count()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def set_options(opt):
|
def set_options(opt):
|
||||||
# the gcc module provides a --debug-level option
|
# the gcc module provides a --debug-level option
|
||||||
|
|
Loading…
Reference in New Issue