SWDEV-410266 - Do not show clangrt options support warning when HIP_CXX_COMPILER is not clang

Change-Id: Ie87ee04daaddc4297a1698b18d0f2d79deee5ae1


[ROCm/clr commit: 84559d0d6f]
This commit is contained in:
Ioannis Assiouras
2023-07-14 13:59:48 +01:00
parent 922c988a8a
commit dbd60497c4
+3 -1
View File
@@ -148,7 +148,9 @@ execute_process(
RESULT_VARIABLE CLANGRT_BUILTINS_FETCH_EXIT_CODE)
if( CLANGRT_Error )
message( STATUS "${HIP_CXX_COMPILER}: CLANGRT compiler options not supported.")
if (HIP_CXX_COMPILER MATCHES ".*clang\\+\\+")
message( STATUS "${HIP_CXX_COMPILER}: CLANGRT compiler options not supported.")
endif()
else()
# Add support for __fp16 and _Float16, explicitly link with compiler-rt
if( "${CLANGRT_BUILTINS_FETCH_EXIT_CODE}" STREQUAL "0" )