SWDEV-357797 - Windows: hipcc to take in args with spaces inside quotes (#2990)

Avoids
"--offload-arch=gfx1034 --offload-arch=gfx1030"
from becoming
"--offload-arch=gfx1034\ --offload-arch=gfx1030"

Change-Id: I4ef0ffeaf5454c274ec4cfb0fe897e5fbc86d3c5

[ROCm/hip commit: 005fd991cc]
このコミットが含まれているのは:
ROCm CI Service Account
2022-10-13 23:26:40 +05:30
committed by GitHub
コミット cd09126130
+1 -1
ファイルの表示
@@ -35,7 +35,7 @@ my $isWindows = ($^O eq 'MSWin32' or $^O eq 'msys');
# escapes args with quotes SWDEV-341955
foreach $arg (@ARGV) {
if ($isWindows) {
$arg =~ s/[^-a-zA-Z0-9_=+,.:\/\\]/\\$&/g;
$arg =~ s/[^-a-zA-Z0-9_=+,.:\/\\ ]/\\$&/g;
}
}