Skip to content

Conversation

@daniel-levin
Copy link

@daniel-levin daniel-levin commented May 22, 2025

feat: Optionally use sccache instead of ccache

sccache is a mostly drop-in replacement for ccache. I have added an option to the stage1 build that allows users to build Lean using sccache. This is likely to be the first of several PRs over time that will make it possible to use every advantage of sccache, 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:

cmake --preset release -DSCCACHE=true

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.

@daniel-levin daniel-levin changed the title Optionally use sccache instead of ccache feat: Optionally use sccache instead of ccache May 22, 2025
@daniel-levin daniel-levin marked this pull request as draft May 22, 2025 15:08
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 22, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 2594a8edadd163ba579fc4a7b5a989650f65edda --onto 4eccb5b4792c270ad10ac059b9672a8845961079. You can force Mathlib CI using the force-mathlib-ci label. (2025-05-22 15:33:01)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants