BuildCache [1] is a compilation cache similar to ccache (which is already supported by the LLVM CMake build system).
This change adds a CMake option, LLVM_BUILDCACHE_BUILD, that enables the use of BuildCache for accelerating LLVM builds.
Differential D94901
Add support for using BuildCache (CMake) mbitsnbites on Jan 18 2021, 2:56 AM. Authored by
Details
BuildCache [1] is a compilation cache similar to ccache (which is already supported by the LLVM CMake build system). This change adds a CMake option, LLVM_BUILDCACHE_BUILD, that enables the use of BuildCache for accelerating LLVM builds.
Diff Detail
Event TimelineComment Actions I'm not sure this (or the ccache variant) is really necessary any more with modern cmake. Does this do anything different from -DCMAKE_CXX_COMPILER_LAUNCHER=buildcache in practice at this point? If we do in fact need this we should probably look at consolidating the logic for compiler launcher workflows, rather than starting a path of duplicating this block for each one in existence. Comment Actions Sorry for the delay. You are correct: -DCMAKE_CXX_COMPILER_LAUNCHER=buildcache works perfectly fine, so this review is moot. |