Skip to content

Commit

Permalink
Add custom CC wrapper to the wrapper whitelist (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
hodrob84 authored Aug 11, 2024
1 parent 5863b31 commit 7858d38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3119,7 +3119,11 @@ impl Build {
//
// It's true that everything here is a bit of a pain, but apparently if
// you're not literally make or bash then you get a lot of bug reports.
let known_wrappers = ["ccache", "distcc", "sccache", "icecc", "cachepot"];
let mut known_wrappers = vec!["ccache", "distcc", "sccache", "icecc", "cachepot"];
let custom_wrapper = self.getenv("CC_KNOWN_WRAPPER_CUSTOM");
if custom_wrapper.is_some() {
known_wrappers.push(custom_wrapper.as_deref().unwrap().to_str().unwrap());
}

let mut parts = tool.split_whitespace();
let maybe_wrapper = match parts.next() {
Expand Down

0 comments on commit 7858d38

Please sign in to comment.