SWDEV-314299 - chomp HIP_CLANG_TARGET

HIP_CLANG_TARGET can contain newline. chomp it to avoid warnings since we use the result in file stat
This commit is contained in:
Maneesh Gupta
2021-12-08 17:02:31 +05:30
committed by GitHub
parent 610565fe68
commit cddb52549b
+1
View File
@@ -159,6 +159,7 @@ if ($HIP_PLATFORM eq "amd") {
# Figure out the target with which llvm is configured
$HIP_CLANG_TARGET = `$HIPCC -print-target-triple`;
$HIP_CLANG_TARGET = chomp($HIP_CLANG_TARGET);
if (! defined $HIP_CLANG_INCLUDE_PATH) {
$HIP_CLANG_INCLUDE_PATH = abs_path("$HIP_CLANG_PATH/../lib/clang/$HIP_CLANG_VERSION/include");