Skip to content

chore(build): disable sccache and enable incremental compilation locally#6105

Merged
bug-ops merged 1 commit into
mainfrom
chore/local-build-profile-no-sccache
Jul 11, 2026
Merged

chore(build): disable sccache and enable incremental compilation locally#6105
bug-ops merged 1 commit into
mainfrom
chore/local-build-profile-no-sccache

Conversation

@bug-ops

@bug-ops bug-ops commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Local rebuilds were routed through a machine-wide sccache wrapper (~/.cargo/config.toml), which disables the benefit of incremental compilation for local cargo build/test/nextest/clippy runs.
  • Adds rustc-wrapper = "" and incremental = true to the repo's tracked .cargo/config.toml to restore incremental compilation locally.
  • CI is unaffected: every workflow already sets RUSTC_WRAPPER and CARGO_INCREMENTAL as explicit job/step env vars, which take precedence over this config file, and CI's [profile.ci] independently pins incremental = false.
  • Deliberately excludes rustflags / [profile.*.build-override], which a prior attempt (af1be7ba, reverted by cf75b63f) added and which slowed down CI with no env-var override available.

Test plan

  • sccache --show-stats compile-request count unchanged across a forced local rebuild (sccache not invoked)
  • cargo build -p zeph-common --verbose shows a direct rustc invocation (no sccache prefix) with -C incremental=... present
  • RUSTC_WRAPPER=sccache cargo build ... --verbose reproduces the sccache wrapper on demand, confirming env-var precedence matches what CI relies on

@github-actions github-actions Bot added chore Maintenance tasks size/S Small PR (11-50 lines) labels Jul 11, 2026
@bug-ops
bug-ops force-pushed the chore/local-build-profile-no-sccache branch from 2f6d4b5 to 62cc5f2 Compare July 11, 2026 22:03
@bug-ops
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
bug-ops force-pushed the chore/local-build-profile-no-sccache branch from 62cc5f2 to 1aa8b4b Compare July 11, 2026 22:07
@bug-ops
bug-ops merged commit d3fcc00 into main Jul 11, 2026
43 checks passed
@bug-ops
bug-ops deleted the chore/local-build-profile-no-sccache branch July 11, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant