Skip to content

bootstrap: sccache has no effect / RUSTC_WRAPPER not used?  #128633

Closed

Description

@matthiaskrgr

b389b0a

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)

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-bugCategory: This is a bug.
    on Aug 4, 2024
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Aug 4, 2024
  3. bjorn3 commented on Aug 4, 2024

    @bjorn3
    Member

    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.

  4. matthiaskrgr commented on Aug 4, 2024

    @matthiaskrgr
    MemberAuthor

    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 🤔

  5. 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
  6. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 18, 2024
  7. Kobzol commented on Aug 25, 2026

    @Kobzol
    Member

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions