Skip to content

Commit 9265d33

Browse files
committed
[UR][L0][CMake] Disable warning for ICX on Windows
On Windows we may build L0 using ICX , this is to revert changes to check WIN32 instead of MSVC, to fix build failures with ICX on Windows.
1 parent 1c6fa3c commit 9265d33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/adapters/level_zero/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ target_link_libraries(LevelZeroLoader
5656
INTERFACE "${LEVEL_ZERO_LIB_NAME}"
5757
)
5858

59-
if (NOT MSVC)
59+
# Windows build might have warnings (both MSVC and ICX), disable Werror etc.
60+
if (NOT WIN32)
6061
target_compile_options(${LEVEL_ZERO_LIB_NAME} PUBLIC
6162
-Wno-unused-but-set-variable
6263
-Wno-pedantic

0 commit comments

Comments
 (0)