File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2210,13 +2210,13 @@ impl Build {
2210
2210
// No explicit CC wrapper was detected, but check if RUSTC_WRAPPER
2211
2211
// is defined and is a build accelerator that is compatible with
2212
2212
// C/C++ compilers (e.g. sccache)
2213
- let valid_wrappers = [ "sccache" ] ;
2213
+ const VALID_WRAPPERS : & [ & ' static str ] = & [ "sccache" , "cachepot "] ;
2214
2214
2215
2215
let rustc_wrapper = std:: env:: var_os ( "RUSTC_WRAPPER" ) ?;
2216
2216
let wrapper_path = Path :: new ( & rustc_wrapper) ;
2217
2217
let wrapper_stem = wrapper_path. file_stem ( ) ?;
2218
2218
2219
- if valid_wrappers . contains ( & wrapper_stem. to_str ( ) ?) {
2219
+ if VALID_WRAPPERS . contains ( & wrapper_stem. to_str ( ) ?) {
2220
2220
Some ( rustc_wrapper. to_str ( ) ?. to_owned ( ) )
2221
2221
} else {
2222
2222
None
You can’t perform that action at this time.
0 commit comments