From 005fd991cc1c7bd0860f8209a000abd077923c53 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 13 Oct 2022 23:26:40 +0530 Subject: [PATCH] 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 --- bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipcc b/bin/hipcc index 42fa1e8a20..dfb5a8f6b8 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -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; } }