Browse Source

Fix JOBS for Solaris make

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
311a62dea7
  1. 4
      Makefile
  2. 6
      wscript

4
Makefile

@ -1,7 +1,7 @@
JOBS?=1 # The number of parallel processes. Use 'JOBS=2 make' for more.
WAF=python tools/waf-light --jobs=$(JOBS)
WAF=python tools/waf-light
all:
echo $(WAF)
@$(WAF) build
all-debug:

6
wscript

@ -15,6 +15,11 @@ import js2c
srcdir = '.'
blddir = 'build'
jobs=1
if os.environ.has_key('JOBS'):
jobs = int(os.environ['JOBS'])
def set_options(opt):
# the gcc module provides a --debug-level option
opt.tool_options('compiler_cxx')
@ -232,6 +237,7 @@ def build_v8(bld):
bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
def build(bld):
Options.options.jobs=jobs
print "DEST_OS: " + bld.env['DEST_OS']
print "DEST_CPU: " + bld.env['DEST_CPU']
print "Parallel Jobs: " + str(Options.options.jobs)

Loading…
Cancel
Save