Skip to content

RUSTC_WRAPPER not used in cargo clippy? #7556

@mathstuf

Description

@mathstuf

Problem

I'm using sccache to help improve CI times for a crate. However, my cargo clippy jobs report 0 attempts against the cache (via sccache --show-stats) even though there are compilation rules being performed. Same pattern works for my actual builds.

Steps

  1. Install sccache
  2. RUSTC_WRAPPER=sccache cargo clippy
  3. sccache --show-stats

Should show non-zero stats.

Possible Solution(s)

Call rustc through clippy the same way compiler commands are called.

Notes

Output of cargo version:

cargo 1.38.0 (23ef9a4 2019-08-20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions