From cc4bc23a2213093ffcfae70ed3491a4b7ad13659 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 3 Jul 2018 14:35:10 -0700 Subject: [PATCH] configure/tools: Derive number of make jobs for buildjs.sh. --- configure.ac | 3 +-- tools/buildjs.sh | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index a91c26063..55eb2f949 100644 --- a/configure.ac +++ b/configure.ac @@ -1232,7 +1232,6 @@ AC_HELP_STRING([--with-included-js[[[=shared]]]], [Use the JS engine (SpiderMonk fi js_branch="esr52" - js_jobs="4" if [[ $DEBUG ]]; then js_options="--disable-optimize --enable-debug --disable-js-shell" @@ -1240,7 +1239,7 @@ AC_HELP_STRING([--with-included-js[[[=shared]]]], [Use the JS engine (SpiderMonk js_options="--enable-optimize --disable-js-shell" fi - bash tools/buildjs.sh "$js_branch" "$js_options" "$js_jobs" + bash tools/buildjs.sh "$js_branch" "$js_options" RB_DEFINE_UNQUOTED([ENABLE_JS], [1], [ Enable JavaScript support. ]) RB_DEFINE_UNQUOTED([INC_JSAPI_H], [jsapi.h>], [ SpiderMonkey JavaScript API. ]) diff --git a/tools/buildjs.sh b/tools/buildjs.sh index 2b7bb5374..b98886905 100755 --- a/tools/buildjs.sh +++ b/tools/buildjs.sh @@ -66,6 +66,7 @@ fi #run ../configure --enable-debug # run ../configure --disable-shared-js --enable-debug # --enable-replace-malloc -run make -j8 +NJOBS=`nproc` +run make -j$NJOBS run cd $USERDIR # Return to user's original directory