Skip to content

Commit 643787f

Browse files
committed
fix gyp for config_value
1 parent 956b2ac commit 643787f

File tree

1 file changed

+2
-1
lines changed
  • tools/gyp/pylib/gyp/generator

1 file changed

+2
-1
lines changed

tools/gyp/pylib/gyp/generator/msvs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,10 @@ def _BuildCommandLineForRuleRaw(
426426
# for arguments like "--arg=path" or "/opt:path".
427427
# If the argument starts with a slash or dash, it's probably a command line
428428
# switch
429+
# If the argument contains an equal sign, it's probably not only a path.
429430
# Return the path with forward slashes because the command using it might
430431
# not support backslashes.
431-
arguments = [i if (i[:1] in "/-") else _FixPath(i, "/") for i in cmd[1:]]
432+
arguments = [i if (i[:1] in "/-" or "=" in i) else _FixPath(i, "/") for i in cmd[1:]]
432433
arguments = [i.replace("$(InputDir)", "%INPUTDIR%") for i in arguments]
433434
arguments = [MSVSSettings.FixVCMacroSlashes(i) for i in arguments]
434435
if quote_cmd:

0 commit comments

Comments
 (0)