Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: failed to detect flavor if compiler path include white spaces #240

Merged
merged 12 commits into from
Apr 23, 2024
5 changes: 2 additions & 3 deletions pylib/gyp/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,9 @@ def replace_sep(s):
defines = {}
lines = stdout.decode("utf-8").replace("\r\n", "\n").split("\n")
for line in lines:
if not line:
if not line or not line.startswith("#define "):
toyobayashi marked this conversation as resolved.
Show resolved Hide resolved
continue
cclauss marked this conversation as resolved.
Show resolved Hide resolved
define_directive, key, *value = line.split(" ")
assert define_directive == "#define"
_, key, *value = line.split(" ")
defines[key] = " ".join(value)
toyobayashi marked this conversation as resolved.
Show resolved Hide resolved
return defines

Expand Down
Loading