From 3c636f76f4fb8015342c946566b3f1f937eab4fd Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 7 Sep 2017 11:50:41 -0700 Subject: [PATCH] Add sccache to the whitelist of ccache-like compilers --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 510df12..c13c967 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1423,7 +1423,7 @@ impl Build { fn env_tool(&self, name: &str) -> Option<(String, Vec)> { self.get_var(name).ok().map(|tool| { - let whitelist = ["ccache", "distcc"]; + let whitelist = ["ccache", "distcc", "sccache"]; for t in whitelist.iter() { if tool.starts_with(t) && tool[t.len()..].starts_with(' ') { return (t.to_string(), vec![tool[t.len()..].trim_left().to_string()]);