Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy does not work with sccache set via RUSTC_WRAPPER #3840

Open
thomaseizinger opened this issue Mar 4, 2019 · 3 comments
Open

Clippy does not work with sccache set via RUSTC_WRAPPER #3840

thomaseizinger opened this issue Mar 4, 2019 · 3 comments

Comments

@thomaseizinger
Copy link

We are using sccache on Travis to minimize our build times. That works well for cargo build and cargo test.

However, it seems like cargo clippy is ignoring the set RUSTC_WRAPPER because it setting one by itself.

@matthiaskrgr
Copy link
Member

I tried something like `RUSTC_WRAPPER="sccache clippy-driver rustc" but that did not work. 😄

@matthiaskrgr
Copy link
Member

I made a ticket at the sccache repo: mozilla/sccache#423

@tylerhawkes
Copy link

I explored this a bit today and I couldn't get it to work even if I moved the rustc binary and placed a bash script that called it with sccache in its place. It appears this is something that clippy-driver needs to fix and honor the original RUSTC_WRAPPER when making its rustc calls.

I have a project that has over 600 build steps and 60% of the 20 minute build time is spent on 3 of them (which compile native code and are very cacheable). I know that clippy is compiling them because it says it is and when I run a cargo build afterward it finishes in 4 minutes and blows right past them, so getting this working with sccache would be a big win for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants