Skip to content

Commit 908d556

Browse files
[SYCL][CMake] Extend Clang workarounds to new 'IntelLLVM' compiler ID (#5261)
Newer versions of CMake will detect icx as "IntelLLVM" rather than "Clang." To preserve this workaround, extend the compiler ID check to match either compiler ID. This should allow builds using icx and newer versions of CMake to continue to work as expected.
1 parent 7869f0e commit 908d556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
22

3-
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
3+
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang|IntelLLVM" )
44
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-covered-switch-default")
55
endif()
66

0 commit comments

Comments
 (0)