File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -423,12 +423,15 @@ def _BuildCommandLineForRuleRaw(
423
423
command .insert (0 , "call" )
424
424
# Fix the paths
425
425
# TODO(quote): This is a really ugly heuristic, and will miss path fixing
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
426
+ # for arguments like "--arg=path", arg=path, or "/opt:path".
427
+ # If the argument starts with a slash or dash, or contains an equal sign,
428
+ # it's probably a command line switch.
429
429
# Return the path with forward slashes because the command using it might
430
430
# not support backslashes.
431
- arguments = [i if (i [:1 ] in "/-" ) else _FixPath (i , "/" ) for i in cmd [1 :]]
431
+ arguments = [
432
+ i if (i [:1 ] in "/-" or "=" in i ) else _FixPath (i , "/" )
433
+ for i in cmd [1 :]
434
+ ]
432
435
arguments = [i .replace ("$(InputDir)" , "%INPUTDIR%" ) for i in arguments ]
433
436
arguments = [MSVSSettings .FixVCMacroSlashes (i ) for i in arguments ]
434
437
if quote_cmd :
You can’t perform that action at this time.
0 commit comments