蕭澧邦 Romain Biessy commited on
Commit
bbd0292
·
1 Parent(s): 959346b

Fix build on Windows when ccache enabled (ggml/9954) (llama/9976)

Browse files

* [SYCL] Fix build on Windows when ccache enabled (llama/9954)

* take effect only on windows and force it to icl

---------

Co-authored-by: Romain Biessy <[email protected]>

Files changed (1) hide show
  1. ggml/src/CMakeLists.txt +5 -1
ggml/src/CMakeLists.txt CHANGED
@@ -76,7 +76,11 @@ if (GGML_CCACHE)
76
  set(GGML_CCACHE_VARIANT sccache)
77
  endif()
78
  # TODO: should not be set globally
79
- set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
 
 
 
 
80
  set(ENV{CCACHE_SLOPPINESS} time_macros)
81
  message(STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
82
  else()
 
76
  set(GGML_CCACHE_VARIANT sccache)
77
  endif()
78
  # TODO: should not be set globally
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 ()
84
  set(ENV{CCACHE_SLOPPINESS} time_macros)
85
  message(STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
86
  else()