Skip to content

Commit

Permalink
add support for clippy-driver to sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc authored and froydnj committed May 6, 2020
1 parent 53e006e commit f502075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,9 @@ where
None => return f_err("could not determine compiler kind"),
Some(f) => f,
};
let rustc_vv = if filename.to_string_lossy().to_lowercase() == "rustc" {
let filename = filename.to_string_lossy().to_lowercase();

let rustc_vv = if filename == "rustc" || filename == "clippy-driver" {
// Sanity check that it's really rustc.
let executable = executable.to_path_buf();
let mut child = creator.clone().new_command_sync(executable);
Expand Down

0 comments on commit f502075

Please sign in to comment.