LLVM_CCACHE_BUILD is deprecated


Just a quick heads up that I just pushed this change to main: :gear: D143468 [CMake] Remove custom ccache CMake logic (llvm.org)

This means that setting LLVM_CCACHE_BUILD=ON will no longer work. In order to use ccache, we should now use the upstream CMake support -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache.

So if your build scripts are using LLVM_CCACHE_BUILD you need to update those.

1 Like

Looking at the buildbots it seems like many bots are using this configuration, so I’ll revert this one for now and hope that this post will cause people to update the configuration to use CMAKE_C/CXX_COMPILER_LAUNCHER instead (which is safe to switch to already now).