take effect only on windows and force it to icl

This commit is contained in:
蕭澧邦 2025-01-05 23:04:02 +08:00 committed by GitHub
parent 8c7c04e896
commit 5d7bb10ee5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1068,8 +1068,8 @@ if (GGML_CCACHE)
if (GGML_CCACHE_FOUND)
# TODO: should not be set globally
if (GGML_SYCL)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache compiler_type=clang-cl")
if (GGML_SYCL AND WIN32)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache compiler_type=icl")
else ()
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
endif ()