@@ -186,6 +186,25 @@ const LLVM_TOOLS: &[&str] = &[
186186
187187pub const VERSION : usize = 2 ;
188188
189+ /// Extra --check-cfg to add when building
190+ /// (Mode restriction, config name, config values (if any))
191+ const EXTRA_CHECK_CFGS : & [ ( Option < Mode > , & ' static str , Option < & [ & ' static str ] > ) ] = & [
192+ ( None , "bootstrap" , None ) ,
193+ ( Some ( Mode :: Rustc ) , "parallel_compiler" , None ) ,
194+ ( Some ( Mode :: ToolRustc ) , "parallel_compiler" , None ) ,
195+ // FIXME: Used by rustfmt is their test but is invalid (neither cargo nor bootstrap ever set
196+ // this config) should probably by removed or use a allow attribute.
197+ ( Some ( Mode :: ToolRustc ) , "release" , None ) ,
198+ ( Some ( Mode :: Std ) , "miri" , None ) ,
199+ ( Some ( Mode :: Std ) , "stdarch_intel_sde" , None ) ,
200+ ( Some ( Mode :: Std ) , "no_fp_fmt_parse" , None ) ,
201+ ( Some ( Mode :: Std ) , "no_global_oom_handling" , None ) ,
202+ ( Some ( Mode :: Std ) , "freebsd12" , None ) ,
203+ ( Some ( Mode :: Std ) , "backtrace_in_libstd" , None ) ,
204+ // FIXME: Used by stdarch in their test, should use a allow attribute instead.
205+ ( Some ( Mode :: Std ) , "dont_compile_me" , None ) ,
206+ ] ;
207+
189208/// A structure representing a Rust compiler.
190209///
191210/// Each compiler has a `stage` that it is associated with and a `host` that
0 commit comments