Skip to content

Commit 8c7c04e

Browse files
[SYCL] Fix build on Windows when ccache enabled (#9954)
1 parent 55e4778 commit 8c7c04e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,11 @@ if (GGML_CCACHE)
10681068

10691069
if (GGML_CCACHE_FOUND)
10701070
# TODO: should not be set globally
1071-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
1071+
if (GGML_SYCL)
1072+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache compiler_type=clang-cl")
1073+
else ()
1074+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
1075+
endif ()
10721076
set(ENV{CCACHE_SLOPPINESS} time_macros)
10731077
message(STATUS "ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
10741078
else()

0 commit comments

Comments
 (0)