build: fix GN arg used in generate_config_gypi.py

PR-URL: https://github.com/nodejs/node/pull/55530
Reviewed-By: Cheng Zhao <zcbenz@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Shelley Vohr 2024-10-28 10:27:31 +01:00 committed by GitHub
parent 7270f84596
commit 4b48f9b633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,11 +19,7 @@ import getnapibuildversion
# 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