summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-05-13 16:24:05 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-05-13 16:24:28 -0700
commit23d680bb858134bb38a74423fb86b8d58477bbb4 (patch)
tree63641264bead78a5dc9834dc9ca15f190fca0605
parentce2d5ad0d74c55e5081863eadad32244e5829d42 (diff)
downloadnodejs-23d680bb858134bb38a74423fb86b8d58477bbb4.tar.gz
nodejs-23d680bb858134bb38a74423fb86b8d58477bbb4.tar.bz2
nodejs-23d680bb858134bb38a74423fb86b8d58477bbb4.zip
Allow parallel jobs to be passed to V8 build
e.g. JOBS=2 make
-rw-r--r--Makefile3
-rw-r--r--wscript4
2 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c487e97fb..d68eeced1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-WAF=python tools/waf-light --jobs=1
+JOBS?=1 # The number of parallel processes. Use 'JOBS=2 make' for more.
+WAF=python tools/waf-light --jobs=$(JOBS)
all:
@$(WAF) build
diff --git a/wscript b/wscript
index fb632a67d..ae446c338 100644
--- a/wscript
+++ b/wscript
@@ -235,9 +235,10 @@ def v8_cmd(bld, variant):
else:
mode = "debug"
- cmd_R = 'python "%s" -C "%s" -Y "%s" visibility=default mode=%s %s library=static snapshot=on'
+ cmd_R = 'python "%s" -j %d -C "%s" -Y "%s" visibility=default mode=%s %s library=static snapshot=on'
cmd = cmd_R % ( scons
+ , Options.options.jobs
, bld.srcnode.abspath(bld.env_of_name(variant))
, v8dir_src
, mode
@@ -276,6 +277,7 @@ def build_v8(bld):
def build(bld):
print "DEST_OS: " + bld.env['DEST_OS']
print "DEST_CPU: " + bld.env['DEST_CPU']
+ print "Parallel Jobs: " + str(Options.options.jobs)
if not bld.env["USE_SYSTEM"]:
bld.add_subdirs('deps/libeio deps/libev deps/c-ares')