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

Change-Id: Ie87ee04daaddc4297a1698b18d0f2d79deee5ae1


[ROCm/clr commit: 84559d0d6f]
Cette révision appartient à :
Ioannis Assiouras a révisé 2023-07-14 16:49:46 -04:00
1 Parent 922c988a8a
révision dbd60497c4
1 fichier modifié
+3 -1
+3 -1
Voir le fichier
@@ -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" )