mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 10:24:35 +00:00
[SYCL] Fix build on Windows when ccache enabled (#9954)
This commit is contained in:
parent
55e47786e3
commit
8c7c04e896
@ -1068,7 +1068,11 @@ if (GGML_CCACHE)
|
||||
|
||||
if (GGML_CCACHE_FOUND)
|
||||
# TODO: should not be set globally
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||
if (GGML_SYCL)
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache compiler_type=clang-cl")
|
||||
else ()
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||
endif ()
|
||||
set(ENV{CCACHE_SLOPPINESS} time_macros)
|
||||
message(STATUS "ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user