From 4356990c59b8cbb2f458b38fdd065e539a21d318 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 3 Nov 2016 20:40:34 +0100 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/9450 Reviewed-By: Ben Noordhuis Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Colin Ihrig --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 309e048e1f7cde..08a7c3e9b5ca5a 100644 --- a/Makefile +++ b/Makefile @@ -150,9 +150,10 @@ test/addons/.buildstamp: config.gypi \ $(ADDONS_BINDING_GYPS) test/addons/.docbuildstamp # Cannot use $(wildcard test/addons/*/) here, it's evaluated before # embedded addons have been generated from the documentation. - for dirname in test/addons/*/; do \ - echo "\nRunning addons test $$PWD/$$dirname" ; \ - $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp --loglevel=$(LOGLEVEL) rebuild \ + @for dirname in test/addons/*/; do \ + echo "\nBuilding addon $$PWD/$$dirname" ; \ + env MAKEFLAGS="-j1" $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp \ + --loglevel=$(LOGLEVEL) rebuild \ --python="$(PYTHON)" \ --directory="$$PWD/$$dirname" \ --nodedir="$$PWD"; \