Add ccache back, with fallback for sccache

This commit is contained in:
Jarred Sumner
2025-11-07 04:01:10 -08:00
parent 94bc68f72c
commit 8ec856124c
2 changed files with 64 additions and 1 deletions

View File

@@ -24,7 +24,16 @@ if(CMAKE_HOST_APPLE)
include(SetupMacSDK)
endif()
include(SetupLLVM)
include(SetupSccache)
find_program(SCCACHE_PROGRAM sccache)
if(SCCACHE_PROGRAM)
include(SetupSccache)
else()
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
include(SetupCcache)
endif()
endif()
# --- Project ---