The Preface
There is some vague talk of maybe someday integrating clippy-driver into cargo build and cargo check rust-lang/cargo#7382, so I went and tried to test if we could just use clippy-driver as a drop in replacement for rustc under cargo build and sccache did not play nicely with it.
The Problem
sccache flat out errors out if clippy-driver is passed in the place of rustc

The Fix
@mystor suggested that someone fix it @
|
let rustc_vv = if filename.to_string_lossy().to_lowercase() == "rustc" { |
to work with clippy-driver.
The Preface
There is some vague talk of maybe someday integrating
clippy-driverintocargo buildandcargo checkrust-lang/cargo#7382, so I went and tried to test if we could just useclippy-driveras a drop in replacement forrustcunder cargo build and sccache did not play nicely with it.The Problem
sccache flat out errors out if
clippy-driveris passed in the place ofrustcThe Fix
@mystor suggested that someone fix it @
sccache/src/compiler/compiler.rs
Line 842 in 6371211