This is an archive of the discontinued LLVM Phabricator instance.

Add support for using BuildCache (CMake)
Needs ReviewPublic

Authored by mbitsnbites on Jan 18 2021, 2:56 AM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
bogner
Summary

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.

[1] https://github.com/mbitsnbites/buildcache

Diff Detail

Event Timeline

mbitsnbites created this revision.Jan 18 2021, 2:56 AM
mbitsnbites requested review of this revision.Jan 18 2021, 2:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2021, 2:56 AM

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.

Sorry for the delay.

You are correct: -DCMAKE_CXX_COMPILER_LAUNCHER=buildcache works perfectly fine, so this review is moot.

bogner resigned from this revision.Jun 14 2022, 1:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 1:47 PM