mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +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)
|
if (GGML_CCACHE_FOUND)
|
||||||
# TODO: should not be set globally
|
# 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)
|
set(ENV{CCACHE_SLOPPINESS} time_macros)
|
||||||
message(STATUS "ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
|
message(STATUS "ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user