You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bootstrap: sccache has no effect / RUSTC_WRAPPER not used? #128633
It seems that when doing a x.py build or check, RUSTC_WRAPPER is no longer used, so all calls go directly to rustc and not sccache rustc which would allow caching through sccache?
When building rustc, I could see that the sccache was neither utilized (no cache hits) nor fed with new artifacts (no cache misses)
I am pretty sure that sccache will either not be effective (it doesn't cache when --sysroot is passed) or cause actual issues (like not invalidating the cache if the standard library gets changed) if it were to be used.
changed the title [-]bootstrap: sccache has on effect / RUSTC_WRAPPER not used? [/-][+]bootstrap: sccache has no effect / RUSTC_WRAPPER not used? [/+]on Aug 4, 2024
Sccache should be used for both the compiler and all tools, provided that you are doing a stage 1 build and have incremental compilation turned off. Feel free to reopen if you still run into this.
Activity
bjorn3 commentedon Aug 4, 2024
I am pretty sure that sccache will either not be effective (it doesn't cache when
--sysrootis passed) or cause actual issues (like not invalidating the cache if the standard library gets changed) if it were to be used.matthiaskrgr commentedon Aug 4, 2024
I'm wondering if #126476 is related. 🤔
@bjorn3 from just doing normal compiler bootstraps like x.py build/test/check I don't remember running into any frequent problems tbh 🤔
[-]bootstrap: sccache has on effect / RUSTC_WRAPPER not used? [/-][+]bootstrap: sccache has no effect / RUSTC_WRAPPER not used? [/+]Kobzol commentedon Aug 25, 2026
Sccache should be used for both the compiler and all tools, provided that you are doing a stage 1 build and have incremental compilation turned off. Feel free to reopen if you still run into this.