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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user