From d2555768ac066d0cfdd50316189885559d177436 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 22 Dec 2022 02:08:04 +0530 Subject: [PATCH] SWDEV-359882 - hipcc compiler does not work when installation path contains spaces (#3117) Change-Id: I35fb67091f1d65ad9474e80f71826a3031c9654e --- bin/hipcc.pl | 3 +++ 1 file changed, 3 insertions(+) mode change 100755 => 100644 bin/hipcc.pl diff --git a/bin/hipcc.pl b/bin/hipcc.pl old mode 100755 new mode 100644 index dedfc58648..431701fb50 --- a/bin/hipcc.pl +++ b/bin/hipcc.pl @@ -172,6 +172,9 @@ if ($HIP_PLATFORM eq "amd") { if($isWindows) { $HIPLDFLAGS .= " -fuse-ld=lld"; $HIPLDFLAGS .= " --ld-path=$HIP_CLANG_PATH/lld-link.exe"; + + # escape possible spaces in path name + $HIPCC =~ s/\s/\\$&/g; } # get Clang RT Builtin path