make: Use ccache for faster compilation (#5318)

* make: Use ccache for faster compilation
This commit is contained in:
Johannes Gäßler
2024-02-05 19:33:00 +01:00
committed by GitHub
parent 78b00dda6c
commit 098f6d737b
2 changed files with 121 additions and 52 deletions

View File

@ -809,9 +809,9 @@ if (LLAMA_CCACHE)
if (LLAMA_CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set(ENV{CCACHE_SLOPPINESS} time_macros)
message(STATUS "Using ccache")
message(STATUS "ccache found, compilation results will be cached. Disable with LLAMA_CCACHE=OFF.")
else()
message(STATUS "Warning: ccache not found - consider installing it or use LLAMA_CCACHE=OFF")
message(STATUS "Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF")
endif ()
endif()