mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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:
parent
7270f84596
commit
4b48f9b633
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user