chore(build): disable sccache and enable incremental compilation locally#6105
Merged
Conversation
bug-ops
force-pushed
the
chore/local-build-profile-no-sccache
branch
from
July 11, 2026 22:03
2f6d4b5 to
62cc5f2
Compare
bug-ops
enabled auto-merge (squash)
July 11, 2026 22:07
Local rebuilds were routed through a machine-wide sccache wrapper via ~/.cargo/config.toml, negating incremental compilation. Every CI workflow already pins RUSTC_WRAPPER and CARGO_INCREMENTAL as explicit env vars, which take precedence over this file, so CI behavior is unaffected.
bug-ops
force-pushed
the
chore/local-build-profile-no-sccache
branch
from
July 11, 2026 22:07
62cc5f2 to
1aa8b4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
~/.cargo/config.toml), which disables the benefit of incremental compilation for localcargo build/test/nextest/clippyruns.rustc-wrapper = ""andincremental = trueto the repo's tracked.cargo/config.tomlto restore incremental compilation locally.RUSTC_WRAPPERandCARGO_INCREMENTALas explicit job/step env vars, which take precedence over this config file, and CI's[profile.ci]independently pinsincremental = false.rustflags/[profile.*.build-override], which a prior attempt (af1be7ba, reverted bycf75b63f) added and which slowed down CI with no env-var override available.Test plan
sccache --show-statscompile-request count unchanged across a forced local rebuild (sccache not invoked)cargo build -p zeph-common --verboseshows a directrustcinvocation (no sccache prefix) with-C incremental=...presentRUSTC_WRAPPER=sccache cargo build ... --verbosereproduces the sccache wrapper on demand, confirming env-var precedence matches what CI relies on