Skip to content

Commit f11b73d

Browse files
committed
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.
1 parent 83aa1f7 commit f11b73d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ test-valgrind: all
127127

128128
test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE)
129129
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
130+
--python="$(PYTHON)" \
130131
--directory="$(shell pwd)/test/gc/node_modules/weak" \
131132
--nodedir="$(shell pwd)"
132133

@@ -149,6 +150,7 @@ test/addons/.buildstamp: $(ADDONS_BINDING_GYPS) \
149150
# embedded addons have been generated from the documentation.
150151
for dirname in test/addons/*/; do \
151152
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
153+
--python="$(PYTHON)" \
152154
--directory="$$PWD/$$dirname" \
153155
--nodedir="$$PWD" || exit 1 ; \
154156
done

0 commit comments

Comments
 (0)