File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
16
16
GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
17
17
)
18
18
19
+ # sccache is not compatible with /Zi flag, disable sccache
20
+ set (CMAKE_CXX_COMPILER_LAUNCHER_BAK "${CMAKE_CXX_COMPILER_LAUNCHER} " )
21
+ set (CMAKE_CXX_COMPILER_LAUNCHER "" )
22
+
19
23
# Workaround warnings/errors for Level Zero build
20
24
set (CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS} " )
21
25
if (WIN32 )
@@ -35,6 +39,7 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
35
39
36
40
# Restore original flags
37
41
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK} " )
42
+ set (CMAKE_CXX_COMPILER_LAUNCHER "${CMAKE_CXX_COMPILER_LAUNCHER_BAK} " )
38
43
39
44
set (LEVEL_ZERO_LIBRARY ze_loader )
40
45
set (LEVEL_ZERO_INCLUDE_DIR
You can’t perform that action at this time.
0 commit comments