From a38f05e703aee5080f9d171c5d1ebd2615464b52 Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Mon, 16 Sep 2024 21:25:52 +0200 Subject: [PATCH] Add buildcache as known Rust and C/C++ compiler wrapper See BuildCache at https://gitlab.com/bits-n-bites/buildcache --- src/lib.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 73c4f7ca..e9638286 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3088,7 +3088,7 @@ impl Build { // No explicit CC wrapper was detected, but check if RUSTC_WRAPPER // is defined and is a build accelerator that is compatible with // C/C++ compilers (e.g. sccache) - const VALID_WRAPPERS: &[&str] = &["sccache", "cachepot"]; + const VALID_WRAPPERS: &[&str] = &["sccache", "cachepot", "buildcache"]; let rustc_wrapper = self.getenv("RUSTC_WRAPPER")?; let wrapper_path = Path::new(&rustc_wrapper); @@ -3142,7 +3142,14 @@ 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 mut known_wrappers = vec!["ccache", "distcc", "sccache", "icecc", "cachepot"]; + let mut known_wrappers = vec![ + "ccache", + "distcc", + "sccache", + "icecc", + "cachepot", + "buildcache", + ]; 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());