From 5be7627c16802b344a94dde5afcf8f89fa7eabb8 Mon Sep 17 00:00:00 2001 From: Icarus Sparry Date: Mon, 11 May 2020 14:28:37 -0400 Subject: [PATCH] Fix runtime failure on windows Signed-off-by: Icarus Sparry Change-Id: I6c991a943e04ef29eff2905becbed0038c3b8ab9 Signed-off-by: Icarus Sparry [ROCm/clr commit: 3c855b543ae62c622437c803f436596ae45b8d08] --- projects/clr/hipamd/bin/hipcc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index 1ed5ac6736..79db36703f 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/bin/hipcc @@ -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; }