From 1ce2f56cf6ef7bf901807bff6d0d6fceb43f6097 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Mon, 14 Nov 2022 16:36:22 +0800 Subject: [PATCH] build: make scripts in gyp run with right python PR-URL: https://github.com/nodejs/node/pull/45435 Reviewed-By: Luigi Pinca Reviewed-By: Ujjwal Sharma --- node.gyp | 2 +- tools/v8_gypfiles/v8.gyp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node.gyp b/node.gyp index a22af3b479aadf..3a0d83ec03cff7 100644 --- a/node.gyp +++ b/node.gyp @@ -429,7 +429,7 @@ 'inputs': [ '<(opensslconfig)', ], 'outputs': [ '<(opensslconfig_internal)', ], 'action': [ - 'python', 'tools/copyfile.py', + '<(python)', 'tools/copyfile.py', '<(opensslconfig)', '<(opensslconfig_internal)', ], diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index fdbac3bd1af8aa..3ccfe07df70bac 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1772,7 +1772,7 @@ }], ], 'action': [ - 'python', '<(V8_ROOT)/tools/testrunner/utils/dump_build_config_gyp.py', + '<(python)', '<(V8_ROOT)/tools/testrunner/utils/dump_build_config_gyp.py', '<@(v8_dump_build_config_args)', ], }, @@ -1866,7 +1866,7 @@ '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', ], 'action': [ - 'python', + '<(python)', '<(V8_ROOT)/tools/gen-postmortem-metadata.py', '<@(_outputs)', '<@(heapobject_files)'