From 9602e94c5b53f2c725b44022154a31e73e7576ab Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Wed, 8 Dec 2021 17:02:31 +0530 Subject: [PATCH] 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 [ROCm/hip commit: cddb52549b4f4fce9165cac8b2ccf25173ba3157] --- projects/hip/bin/hipcc | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index cd3481db80..7b84067202 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -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");