Set RULE_LAUNCH_COMPILE to detected ccache absolute path.
This should fix a build issue on systems that install ccache to /usr/local/ or /opt/homebrew/ and don't include that path in non-interactive shells spawned by subprocesses.
This commit is contained in:
parent
9588f196b1
commit
f5a3bbbdda
1 changed files with 3 additions and 3 deletions
|
@ -947,9 +947,9 @@ if (LLAMA_LTO)
|
|||
endif()
|
||||
|
||||
if (LLAMA_CCACHE)
|
||||
find_program(LLAMA_CCACHE_FOUND ccache)
|
||||
if (LLAMA_CCACHE_FOUND)
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||
find_program(LLAMA_CCACHE_PATH ccache)
|
||||
if (LLAMA_CCACHE_PATH)
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${LLAMA_CCACHE_PATH})
|
||||
set(ENV{CCACHE_SLOPPINESS} time_macros)
|
||||
message(STATUS "ccache found, compilation results will be cached. Disable with LLAMA_CCACHE=OFF.")
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue