File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,13 @@ 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
-
23
19
# Workaround warnings/errors for Level Zero build
24
20
set (CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS} " )
25
21
if (WIN32 )
26
- #FIXME: Level Zero build fails with /DUNICODE
22
+ # FIXME: Level Zero build fails with /DUNICODE
27
23
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /UUNICODE" )
24
+ # USE_Z7 forces use of /Z7 instead of /Zi which is broken with sccache
25
+ set (USE_Z7 ON )
28
26
else ()
29
27
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable" )
30
28
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic" )
@@ -39,7 +37,6 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
39
37
40
38
# Restore original flags
41
39
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK} " )
42
- set (CMAKE_CXX_COMPILER_LAUNCHER "${CMAKE_CXX_COMPILER_LAUNCHER_BAK} " )
43
40
44
41
set (LEVEL_ZERO_LIBRARY ze_loader )
45
42
set (LEVEL_ZERO_INCLUDE_DIR
You can’t perform that action at this time.
0 commit comments