Skip to content

Commit 1aa87ee

Browse files
shou692199Rbiessy
andauthored
[SYCL] Fix build on Windows when ccache enabled (ggml-org#9954) (ggml-org#9976)
* [SYCL] Fix build on Windows when ccache enabled (ggml-org#9954) * take effect only on windows and force it to icl --------- Co-authored-by: Romain Biessy <romain.biessy@codeplay.com>
1 parent 9ffcc9e commit 1aa87ee

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
@@ -76,7 +76,11 @@ if (GGML_CCACHE)
7676
set(GGML_CCACHE_VARIANT sccache)
7777
endif()
7878
# TODO: should not be set globally
79-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
79+
if (GGML_SYCL AND GGML_CCACHE_FOUND AND WIN32)
80+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache compiler_type=icl")
81+
else ()
82+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
83+
endif ()
8084
set(ENV{CCACHE_SLOPPINESS} time_macros)
8185
message(STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
8286
else()

0 commit comments

Comments
 (0)