Fix runtime failure on windows
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com> Change-Id: I6c991a943e04ef29eff2905becbed0038c3b8ab9 Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
This commit is contained in:
@@ -678,7 +678,9 @@ foreach $arg (@ARGV)
|
||||
# common characters such as alphanumerics.
|
||||
# Do the quoting here because sometimes the $arg is changed in the loop
|
||||
# Important to have all of '-Xlinker' in the set of unquoted characters.
|
||||
$arg =~ s/[^-a-zA-Z0-9=+,.]/\\$&/g;
|
||||
if (not $isWindows) { # Windows needs different quoting, ignore for now
|
||||
$arg =~ s/[^-a-zA-Z0-9_=+,.\/]/\\$&/g;
|
||||
}
|
||||
$toolArgs .= " $arg" unless $swallowArg;
|
||||
$prevArg = $arg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user