configure/tools: Derive number of make jobs for buildjs.sh.

This commit is contained in:
Jason Volk 2018-07-03 14:35:10 -07:00
parent 4a0a89cce9
commit cc4bc23a22
2 changed files with 3 additions and 3 deletions

View File

@ -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. ])

View File

@ -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