File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tools/gyp/pylib/gyp/generator Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments