From 92090d3435f61b4a9a0fa96feaed15aca35328ff Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 11 Aug 2021 10:20:48 +0900 Subject: [PATCH] build: make scripts in gyp run with right python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39730 Reviewed-By: Michaƫl Zasso Reviewed-By: Anna Henningsen Reviewed-By: Chengzhong Wu Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- tools/icu/icu-generic.gyp | 4 ++-- tools/v8_gypfiles/v8.gyp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/icu/icu-generic.gyp b/tools/icu/icu-generic.gyp index 36339144926096..3e830aa097e570 100644 --- a/tools/icu/icu-generic.gyp +++ b/tools/icu/icu-generic.gyp @@ -167,7 +167,7 @@ 'msvs_quote_cmd': 0, 'inputs': [ '<(icu_data_in)', 'icu_small.json' ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], - 'action': [ 'python', + 'action': [ '<(python)', 'icutrim.py', '-P', '<(PRODUCT_DIR)/.', # '.' suffix is a workaround against GYP assumptions :( '-D', '<(icu_data_in)', @@ -252,7 +252,7 @@ 'action_name': 'icutrim', 'inputs': [ '<(icu_data_in)', 'icu_small.json' ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], - 'action': [ 'python', + 'action': [ '<(python)', 'icutrim.py', '-P', '<(PRODUCT_DIR)', '-D', '<(icu_data_in)', diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 0a39f77189927c..1190e38b601a1a 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -231,7 +231,7 @@ '<(generate_bytecode_builtins_list_output)', ], 'action': [ - 'python', + '<(python)', '<(V8_ROOT)/tools/run.py', '<@(_inputs)', '<@(_outputs)', @@ -1554,7 +1554,7 @@ '<(SHARED_INTERMEDIATE_DIR)/src/regexp/special-case.cc', ], 'action': [ - 'python', + '<(python)', '<(V8_ROOT)/tools/run.py', '<@(_inputs)', '<@(_outputs)',