diff options
| author | Jieyou Xu <jieyouxu@outlook.com> | 2025-07-30 16:27:33 +0800 |
|---|---|---|
| committer | Jieyou Xu <jieyouxu@outlook.com> | 2025-07-30 19:55:07 +0800 |
| commit | 4f8d4ca1908e6179c4094d5843db6a29cb323d4d (patch) | |
| tree | 541ade427f234c2ebb11da7c09f9a19280d4662e | |
| parent | 013b3eb8055d730f152e9a26df0317ef16f0f86b (diff) | |
| download | rust-4f8d4ca1908e6179c4094d5843db6a29cb323d4d.tar.gz rust-4f8d4ca1908e6179c4094d5843db6a29cb323d4d.zip | |
Update `codegen_{cranelift,gcc}` and `opt-dist` to use `build.compiletest-allow-stage0`
| -rw-r--r-- | build_system/src/test.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build_system/src/test.rs b/build_system/src/test.rs index bc0fdd40b6e..2c8271c36a9 100644 --- a/build_system/src/test.rs +++ b/build_system/src/test.rs @@ -561,8 +561,6 @@ fn asm_tests(env: &Env, args: &TestArg) -> Result<(), String> { // FIXME: create a function "display_if_not_quiet" or something along the line. println!("[TEST] rustc asm test suite"); - env.insert("COMPILETEST_FORCE_STAGE0".to_string(), "1".to_string()); - let codegen_backend_path = format!( "{pwd}/target/{channel}/librustc_codegen_gcc.{dylib_ext}", pwd = std::env::current_dir() @@ -588,6 +586,8 @@ fn asm_tests(env: &Env, args: &TestArg) -> Result<(), String> { &"always", &"--stage", &"0", + &"--set", + &"build.compiletest-allow-stage0=true", &"tests/assembly-llvm/asm", &"--compiletest-rustc-args", &rustc_args, @@ -1047,7 +1047,6 @@ where // FIXME: create a function "display_if_not_quiet" or something along the line. println!("[TEST] rustc {test_type} test suite"); - env.insert("COMPILETEST_FORCE_STAGE0".to_string(), "1".to_string()); let extra = if args.is_using_gcc_master_branch() { "" } else { " -Csymbol-mangling-version=v0" }; @@ -1070,6 +1069,8 @@ where &"always", &"--stage", &"0", + &"--set", + &"build.compiletest-allow-stage0=true", &format!("tests/{test_type}"), &"--compiletest-rustc-args", &rustc_args, |
