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 {
22102210 // No explicit CC wrapper was detected, but check if RUSTC_WRAPPER
22112211 // is defined and is a build accelerator that is compatible with
22122212 // C/C++ compilers (e.g. sccache)
2213- let valid_wrappers = [ "sccache" ] ;
2213+ const VALID_WRAPPERS : & [ & ' static str ] = & [ "sccache" , "cachepot "] ;
22142214
22152215 let rustc_wrapper = std:: env:: var_os ( "RUSTC_WRAPPER" ) ?;
22162216 let wrapper_path = Path :: new ( & rustc_wrapper) ;
22172217 let wrapper_stem = wrapper_path. file_stem ( ) ?;
22182218
2219- if valid_wrappers . contains ( & wrapper_stem. to_str ( ) ?) {
2219+ if VALID_WRAPPERS . contains ( & wrapper_stem. to_str ( ) ?) {
22202220 Some ( rustc_wrapper. to_str ( ) ?. to_owned ( ) )
22212221 } else {
22222222 None
You can’t perform that action at this time.
0 commit comments