From cd091261309f96f2ea257490e2434fe73e86dc4e 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 [ROCm/hip commit: 005fd991cc1c7bd0860f8209a000abd077923c53] --- projects/hip/bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 42fa1e8a20..dfb5a8f6b8 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/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; } }