Javascript test-suite Makefile parallel jobs
Suppress warning running test-suite and examples: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. Note that node-gyp uses make under the hood and clearing the MAKEFILE env is the only way I could find to suppress this warning.
This commit is contained in:
parent
12c66f9b7d
commit
1f76cda125
2 changed files with 5 additions and 5 deletions
|
|
@ -66,14 +66,14 @@ ifeq (node,$(JSENGINE))
|
|||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile SRCDIR='$(SRCDIR)' \
|
||||
SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \
|
||||
SWIGOPT='-javascript $(SWIGOPT) -o $*_wrap.cxx $(srcdir)/../$*.i' swiginvoke && \
|
||||
$(COMPILETOOL) $(NODEGYP) --loglevel=silent --directory $* configure build 1>>/dev/null
|
||||
MAKEFLAGS= $(COMPILETOOL) $(NODEGYP) --loglevel=silent --directory $* configure build 1>>/dev/null
|
||||
|
||||
swig_and_compile_cpp = \
|
||||
$(setup_node) && \
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile SRCDIR='$(SRCDIR)' \
|
||||
SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \
|
||||
SWIGOPT='-c++ -javascript $(SWIGOPT) $(srcdir)/../$*.i' swiginvoke && \
|
||||
$(COMPILETOOL) $(NODEGYP) --loglevel=silent --directory $* configure build 1>>/dev/null
|
||||
MAKEFLAGS= $(COMPILETOOL) $(NODEGYP) --loglevel=silent --directory $* configure build 1>>/dev/null
|
||||
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$*$(SCRIPTSUFFIX) ]; then \
|
||||
|
|
@ -83,12 +83,12 @@ ifeq (node,$(JSENGINE))
|
|||
|
||||
%.ctest:
|
||||
$(_setup)
|
||||
$(swig_and_compile_c)
|
||||
+$(swig_and_compile_c)
|
||||
$(run_testcase)
|
||||
|
||||
%.cpptest:
|
||||
$(_setup)
|
||||
$(swig_and_compile_cpp)
|
||||
+$(swig_and_compile_cpp)
|
||||
$(run_testcase)
|
||||
|
||||
%.multicpptest:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue