File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
sycl/plugins/unified_runtime Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,17 @@ if (NOT DEFINED UNIFIED_RUNTIME_LIBRARY OR NOT DEFINED UNIFIED_RUNTIME_INCLUDE_D
15
15
# Disable errors from warnings while building the UR.
16
16
# And remember origin flags before doing that.
17
17
set (CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS} " )
18
- if (UNIX )
18
+ if (WIN32 )
19
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX-" )
20
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX-" )
21
+ # FIXME: Unified runtime build fails with /DUNICODE
22
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /UUNICODE" )
23
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /UUNICODE" )
24
+ # USE_Z7 forces use of /Z7 instead of /Zi which is broken with sccache
25
+ set (USE_Z7 ON )
26
+ else ()
19
27
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error" )
28
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error" )
20
29
endif ()
21
30
22
31
# No need to build tests from unified-runtime
You can’t perform that action at this time.
0 commit comments