From 4b48f9b63307b41c1a7ec872aaa82f74f95d2be7 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 28 Oct 2024 10:27:31 +0100 Subject: [PATCH] build: fix GN arg used in generate_config_gypi.py PR-URL: https://github.com/nodejs/node/pull/55530 Reviewed-By: Cheng Zhao Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca --- tools/generate_config_gypi.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/generate_config_gypi.py b/tools/generate_config_gypi.py index 45b3ac5006140f..c9dd4a24a39c50 100755 --- a/tools/generate_config_gypi.py +++ b/tools/generate_config_gypi.py @@ -19,11 +19,7 @@ # Regex used for parsing results of "gn args". GN_RE = re.compile(r'(\w+)\s+=\s+(.*?)$', re.MULTILINE) - -if sys.platform == 'win32': - GN = 'gn.exe' -else: - GN = 'gn' +GN = 'gn.bat' if sys.platform == 'win32' else 'gn' def bool_to_number(v): return 1 if v else 0