From 11164248245790685e18325361a9cc3b44cecf4e Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Mon, 30 Oct 2023 15:17:15 +0000 Subject: [PATCH] fix: fix compilation of L0 black box tests for clang on Windows Signed-off-by: Mateusz Jablonski --- level_zero/core/test/black_box_tests/CMakeLists.txt | 2 +- .../test/black_box_tests/zello_global_bindless_kernel.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/level_zero/core/test/black_box_tests/CMakeLists.txt b/level_zero/core/test/black_box_tests/CMakeLists.txt index b42e00691b..5bf15898f1 100644 --- a/level_zero/core/test/black_box_tests/CMakeLists.txt +++ b/level_zero/core/test/black_box_tests/CMakeLists.txt @@ -72,7 +72,7 @@ set(TEST_TARGETS include_directories(common) foreach(TEST_NAME ${TEST_TARGETS}) - if(MSVC) + if(WIN32) if(${TEST_NAME} STREQUAL "zello_host_ipc_copy_dma_buf") continue() endif() diff --git a/level_zero/core/test/black_box_tests/zello_global_bindless_kernel.cpp b/level_zero/core/test/black_box_tests/zello_global_bindless_kernel.cpp index c3f98745d0..3774c18cf6 100644 --- a/level_zero/core/test/black_box_tests/zello_global_bindless_kernel.cpp +++ b/level_zero/core/test/black_box_tests/zello_global_bindless_kernel.cpp @@ -5,7 +5,7 @@ * */ -#ifdef WIN32 +#ifdef _WIN32 #include #include #pragma warning(disable : 4996) @@ -16,7 +16,7 @@ #include #include -#ifdef WIN32 +#ifdef _WIN32 const char *fSeparator = "\\"; #elif defined(__linux__) const char *fSeparator = "/";