Skip to content

Commit ceec520

Browse files
danbevevanlucas
authored andcommitted
build: add MAKEFLAGS="-j1" to node-gyp
Currently, when building the addons the following warning is displayed: make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. Adding the MAKEFLAGS="-j1" to avoid the warning. Also updated the log message to say that it is building the addon and not running the test as I think that is more accurate. PR-URL: #9450 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 6e1eb59 commit ceec520

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ test/addons/.buildstamp: config.gypi \
165165
test/addons/.docbuildstamp
166166
# Cannot use $(wildcard test/addons/*/) here, it's evaluated before
167167
# embedded addons have been generated from the documentation.
168-
for dirname in test/addons/*/; do \
169-
echo "\nRunning addons test $$PWD/$$dirname" ; \
170-
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp --loglevel=$(LOGLEVEL) rebuild \
168+
@for dirname in test/addons/*/; do \
169+
echo "\nBuilding addon $$PWD/$$dirname" ; \
170+
env MAKEFLAGS="-j1" $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp \
171+
--loglevel=$(LOGLEVEL) rebuild \
171172
--python="$(PYTHON)" \
172173
--directory="$$PWD/$$dirname" \
173174
--nodedir="$$PWD" || exit 1 ; \

0 commit comments

Comments
 (0)