Fix JOBS for Solaris make
This commit is contained in:
parent
4b216d266a
commit
311a62dea7
4
Makefile
4
Makefile
@ -1,7 +1,7 @@
|
|||||||
JOBS?=1 # The number of parallel processes. Use 'JOBS=2 make' for more.
|
WAF=python tools/waf-light
|
||||||
WAF=python tools/waf-light --jobs=$(JOBS)
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
echo $(WAF)
|
||||||
@$(WAF) build
|
@$(WAF) build
|
||||||
|
|
||||||
all-debug:
|
all-debug:
|
||||||
|
6
wscript
6
wscript
@ -15,6 +15,11 @@ import js2c
|
|||||||
srcdir = '.'
|
srcdir = '.'
|
||||||
blddir = 'build'
|
blddir = 'build'
|
||||||
|
|
||||||
|
|
||||||
|
jobs=1
|
||||||
|
if os.environ.has_key('JOBS'):
|
||||||
|
jobs = int(os.environ['JOBS'])
|
||||||
|
|
||||||
def set_options(opt):
|
def set_options(opt):
|
||||||
# the gcc module provides a --debug-level option
|
# the gcc module provides a --debug-level option
|
||||||
opt.tool_options('compiler_cxx')
|
opt.tool_options('compiler_cxx')
|
||||||
@ -232,6 +237,7 @@ def build_v8(bld):
|
|||||||
bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
|
bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
|
Options.options.jobs=jobs
|
||||||
print "DEST_OS: " + bld.env['DEST_OS']
|
print "DEST_OS: " + bld.env['DEST_OS']
|
||||||
print "DEST_CPU: " + bld.env['DEST_CPU']
|
print "DEST_CPU: " + bld.env['DEST_CPU']
|
||||||
print "Parallel Jobs: " + str(Options.options.jobs)
|
print "Parallel Jobs: " + str(Options.options.jobs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user