We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 956b2ac commit 643787fCopy full SHA for 643787f
tools/gyp/pylib/gyp/generator/msvs.py
@@ -426,9 +426,10 @@ def _BuildCommandLineForRuleRaw(
426
# for arguments like "--arg=path" or "/opt:path".
427
# If the argument starts with a slash or dash, it's probably a command line
428
# switch
429
+ # If the argument contains an equal sign, it's probably not only a path.
430
# Return the path with forward slashes because the command using it might
431
# not support backslashes.
- 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:]]
433
arguments = [i.replace("$(InputDir)", "%INPUTDIR%") for i in arguments]
434
arguments = [MSVSSettings.FixVCMacroSlashes(i) for i in arguments]
435
if quote_cmd:
0 commit comments