feat: Optionally use sccache instead of ccache #8444
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: Optionally use sccache instead of ccache
sccache is a mostly drop-in replacement for
ccache. I have added an option to thestage1build that allows users to build Lean usingsccache. This is likely to be the first of several PRs over time that will make it possible to use every advantage ofsccache, which includes distributed builds, and builds that can easily plug into cloud infrastructure. This option is turned off by default, and must be manually enabled like so:I have no expectation that Lean will ever officially support
sccache. I am adding this option to explore the viability of using the next generation of build caching tools.