Skip to content

Commit 23e3287

Browse files
codebytereruyadorno
authored andcommitted
build: fix GN arg used in generate_config_gypi.py
PR-URL: #55530 Reviewed-By: Cheng Zhao <zcbenz@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0e69f6d commit 23e3287

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/generate_config_gypi.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919

2020
# Regex used for parsing results of "gn args".
2121
GN_RE = re.compile(r'(\w+)\s+=\s+(.*?)$', re.MULTILINE)
22-
23-
if sys.platform == 'win32':
24-
GN = 'gn.exe'
25-
else:
26-
GN = 'gn'
22+
GN = 'gn.bat' if sys.platform == 'win32' else 'gn'
2723

2824
def bool_to_number(v):
2925
return 1 if v else 0

0 commit comments

Comments
 (0)