Fix hipcc for extracing clang version
On teamcity clang --version returns something like clang version 12.0.0 Target: x86_64-unknown-linux-gnu currently hipcc does not handle it correctly since [^ ] causes new line and Targe: matched. \S will make sure only version string matched. Change-Id: I3659d6daf89b709d2b001e6b8024d69d8b79efc0
This commit is contained in:
committed by
Yaxun Liu
parent
99eb486937
commit
d537bb3859
@@ -201,7 +201,7 @@ if ($HIP_PLATFORM eq "hcc" and $HIP_COMPILER eq "clang") {
|
||||
}
|
||||
|
||||
$HIP_CLANG_VERSION = `$HIPCC --version`;
|
||||
$HIP_CLANG_VERSION=~/.*clang version ([^ ]+).*/;
|
||||
$HIP_CLANG_VERSION=~/.*clang version (\S+).*/;
|
||||
$HIP_CLANG_VERSION=$1;
|
||||
|
||||
if (! defined $HIP_CLANG_INCLUDE_PATH) {
|
||||
|
||||
Reference in New Issue
Block a user