From f2a4def232427e93d5a1a34629e7579855e80a34 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 642592fa246e51..5a9f8d1b56487f 100644 --- a/node.gyp +++ b/node.gyp @@ -438,7 +438,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 c2439a5f010203..a078ca11953be8 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1782,7 +1782,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)', ], }, @@ -1876,7 +1876,7 @@ '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', ], 'action': [ - 'python', + '<(python)', '<(V8_ROOT)/tools/gen-postmortem-metadata.py', '<@(_outputs)', '<@(heapobject_files)'