@@ -417,6 +417,9 @@ pub struct Config {
417
417
/// Command for visual diff display, e.g. `diff-tool --color=always`.
418
418
pub compiletest_diff_tool : Option < String > ,
419
419
420
+ /// Whether to use the precompiled stage0 libtest with compiletest.
421
+ pub compiletest_use_stage0_libtest : bool ,
422
+
420
423
pub is_running_on_ci : bool ,
421
424
}
422
425
@@ -983,6 +986,7 @@ define_config! {
983
986
optimized_compiler_builtins: Option <bool > = "optimized-compiler-builtins" ,
984
987
jobs: Option <u32 > = "jobs" ,
985
988
compiletest_diff_tool: Option <String > = "compiletest-diff-tool" ,
989
+ compiletest_use_stage0_libtest: Option <bool > = "compiletest-use-stage0-libtest" ,
986
990
ccache: Option <StringOrBool > = "ccache" ,
987
991
exclude: Option <Vec <PathBuf >> = "exclude" ,
988
992
}
@@ -1682,6 +1686,7 @@ impl Config {
1682
1686
optimized_compiler_builtins,
1683
1687
jobs,
1684
1688
compiletest_diff_tool,
1689
+ compiletest_use_stage0_libtest,
1685
1690
mut ccache,
1686
1691
exclude,
1687
1692
} = toml. build . unwrap_or_default ( ) ;
@@ -2415,6 +2420,7 @@ impl Config {
2415
2420
config. optimized_compiler_builtins =
2416
2421
optimized_compiler_builtins. unwrap_or ( config. channel != "dev" ) ;
2417
2422
config. compiletest_diff_tool = compiletest_diff_tool;
2423
+ config. compiletest_use_stage0_libtest = compiletest_use_stage0_libtest. unwrap_or ( true ) ;
2418
2424
2419
2425
let download_rustc = config. download_rustc_commit . is_some ( ) ;
2420
2426
config. explicit_stage_from_cli = flags. stage . is_some ( ) ;
0 commit comments