From 5d7bb10ee5a9815a01718d142c59719d22453064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=95=AD=E6=BE=A7=E9=82=A6?= <45505768+shou692199@users.noreply.github.com> Date: Sun, 5 Jan 2025 23:04:02 +0800 Subject: [PATCH] take effect only on windows and force it to icl --- ggml/src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 15101ab15..634d3f296 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -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 ()