Skip to content

Commit

Permalink
[HACK] fix gyp for config_value
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Mar 7, 2022
1 parent 1c81ea4 commit 836ed73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/gyp/pylib/gyp/generator/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,10 @@ def _BuildCommandLineForRuleRaw(
# for arguments like "--arg=path" or "/opt:path".
# If the argument starts with a slash or dash, it's probably a command line
# switch
# If the argument contains an equal sign, it's probably not only a path.
# Return the path with forward slashes because the command using it might
# not support backslashes.
arguments = [i if (i[:1] in "/-") else _FixPath(i, "/") for i in cmd[1:]]
arguments = [i if (i[:1] in "/-" or "=" in i) else _FixPath(i, "/") for i in cmd[1:]]
arguments = [i.replace("$(InputDir)", "%INPUTDIR%") for i in arguments]
arguments = [MSVSSettings.FixVCMacroSlashes(i) for i in arguments]
if quote_cmd:
Expand Down

0 comments on commit 836ed73

Please sign in to comment.