summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhefangshi <hefangshi@gmail.com>2016-05-09 15:17:06 +0800
committerEvan Lucas <evanlucas@me.com>2016-05-17 08:37:00 -0500
commit3f9d72408ff955ab95108acb82562021c7d96dc2 (patch)
tree36228dcc35bbf34f5479b9d4a533f036fd38fd06 /Makefile
parent0c62bd13fb7bbe8a02f20815206133c27dde2474 (diff)
downloadnode-new-3f9d72408ff955ab95108acb82562021c7d96dc2.tar.gz
test: pass python path to node-gyp
node-gyp rebuild should use the same python interpreter as in Makefile rather than let node-gyp guess the python path by itself. PR-URL: https://github.com/nodejs/node/pull/6646 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0e2f5cd1bc..488754b3f5 100644
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,7 @@ test-valgrind: all
test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE)
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
+ --python="$(PYTHON)" \
--directory="$(shell pwd)/test/gc/node_modules/weak" \
--nodedir="$(shell pwd)"
@@ -151,6 +152,7 @@ test/addons/.buildstamp: $(ADDONS_BINDING_GYPS) \
# embedded addons have been generated from the documentation.
for dirname in test/addons/*/; do \
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
+ --python="$(PYTHON)" \
--directory="$$PWD/$$dirname" \
--nodedir="$$PWD" || exit 1 ; \
done