Skip to content

Commit dab5d7a

Browse files
authored
Add buildcache as known Rust and C/C++ compiler wrapper (#1209)
See BuildCache at https://gitlab.com/bits-n-bites/buildcache
1 parent c0b3eae commit dab5d7a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/lib.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3088,7 +3088,7 @@ impl Build {
30883088
// No explicit CC wrapper was detected, but check if RUSTC_WRAPPER
30893089
// is defined and is a build accelerator that is compatible with
30903090
// C/C++ compilers (e.g. sccache)
3091-
const VALID_WRAPPERS: &[&str] = &["sccache", "cachepot"];
3091+
const VALID_WRAPPERS: &[&str] = &["sccache", "cachepot", "buildcache"];
30923092

30933093
let rustc_wrapper = self.getenv("RUSTC_WRAPPER")?;
30943094
let wrapper_path = Path::new(&rustc_wrapper);
@@ -3142,7 +3142,14 @@ impl Build {
31423142
//
31433143
// It's true that everything here is a bit of a pain, but apparently if
31443144
// you're not literally make or bash then you get a lot of bug reports.
3145-
let mut known_wrappers = vec!["ccache", "distcc", "sccache", "icecc", "cachepot"];
3145+
let mut known_wrappers = vec![
3146+
"ccache",
3147+
"distcc",
3148+
"sccache",
3149+
"icecc",
3150+
"cachepot",
3151+
"buildcache",
3152+
];
31463153
let custom_wrapper = self.getenv("CC_KNOWN_WRAPPER_CUSTOM");
31473154
if custom_wrapper.is_some() {
31483155
known_wrappers.push(custom_wrapper.as_deref().unwrap().to_str().unwrap());

0 commit comments

Comments
 (0)