Update codegen_{cranelift,gcc} and opt-dist to use build.compiletest-allow-stage0
This commit is contained in:
@@ -33,6 +33,7 @@ rustc = "$(pwd)/../dist/bin/rustc-clif"
|
|||||||
cargo = "$(rustup which cargo)"
|
cargo = "$(rustup which cargo)"
|
||||||
full-bootstrap = true
|
full-bootstrap = true
|
||||||
local-rebuild = true
|
local-rebuild = true
|
||||||
|
compiletest-allow-stage0 = true
|
||||||
|
|
||||||
[rust]
|
[rust]
|
||||||
download-rustc = false
|
download-rustc = false
|
||||||
|
|||||||
@@ -166,5 +166,5 @@ index 073116933bd..c3e4578204d 100644
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "[TEST] rustc test suite"
|
echo "[TEST] rustc test suite"
|
||||||
COMPILETEST_FORCE_STAGE0=1 ./x.py test --stage 0 --test-args=--no-capture tests/{codegen-units,run-make,ui,incremental}
|
./x.py test --stage 0 --test-args=--no-capture tests/{codegen-units,run-make,ui,incremental}
|
||||||
popd
|
popd
|
||||||
|
|||||||
@@ -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.
|
// FIXME: create a function "display_if_not_quiet" or something along the line.
|
||||||
println!("[TEST] rustc asm test suite");
|
println!("[TEST] rustc asm test suite");
|
||||||
|
|
||||||
env.insert("COMPILETEST_FORCE_STAGE0".to_string(), "1".to_string());
|
|
||||||
|
|
||||||
let codegen_backend_path = format!(
|
let codegen_backend_path = format!(
|
||||||
"{pwd}/target/{channel}/librustc_codegen_gcc.{dylib_ext}",
|
"{pwd}/target/{channel}/librustc_codegen_gcc.{dylib_ext}",
|
||||||
pwd = std::env::current_dir()
|
pwd = std::env::current_dir()
|
||||||
@@ -588,6 +586,8 @@ fn asm_tests(env: &Env, args: &TestArg) -> Result<(), String> {
|
|||||||
&"always",
|
&"always",
|
||||||
&"--stage",
|
&"--stage",
|
||||||
&"0",
|
&"0",
|
||||||
|
&"--set",
|
||||||
|
&"build.compiletest-allow-stage0=true",
|
||||||
&"tests/assembly-llvm/asm",
|
&"tests/assembly-llvm/asm",
|
||||||
&"--compiletest-rustc-args",
|
&"--compiletest-rustc-args",
|
||||||
&rustc_args,
|
&rustc_args,
|
||||||
@@ -1047,7 +1047,6 @@ where
|
|||||||
|
|
||||||
// FIXME: create a function "display_if_not_quiet" or something along the line.
|
// FIXME: create a function "display_if_not_quiet" or something along the line.
|
||||||
println!("[TEST] rustc {test_type} test suite");
|
println!("[TEST] rustc {test_type} test suite");
|
||||||
env.insert("COMPILETEST_FORCE_STAGE0".to_string(), "1".to_string());
|
|
||||||
|
|
||||||
let extra =
|
let extra =
|
||||||
if args.is_using_gcc_master_branch() { "" } else { " -Csymbol-mangling-version=v0" };
|
if args.is_using_gcc_master_branch() { "" } else { " -Csymbol-mangling-version=v0" };
|
||||||
@@ -1070,6 +1069,8 @@ where
|
|||||||
&"always",
|
&"always",
|
||||||
&"--stage",
|
&"--stage",
|
||||||
&"0",
|
&"0",
|
||||||
|
&"--set",
|
||||||
|
&"build.compiletest-allow-stage0=true",
|
||||||
&format!("tests/{test_type}"),
|
&format!("tests/{test_type}"),
|
||||||
&"--compiletest-rustc-args",
|
&"--compiletest-rustc-args",
|
||||||
&rustc_args,
|
&rustc_args,
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ lld = false
|
|||||||
rustc = "{rustc}"
|
rustc = "{rustc}"
|
||||||
cargo = "{cargo}"
|
cargo = "{cargo}"
|
||||||
local-rebuild = true
|
local-rebuild = true
|
||||||
|
compiletest-allow-stage0=true
|
||||||
|
|
||||||
[target.{host_triple}]
|
[target.{host_triple}]
|
||||||
llvm-config = "{llvm_config}"
|
llvm-config = "{llvm_config}"
|
||||||
@@ -117,7 +118,6 @@ llvm-config = "{llvm_config}"
|
|||||||
args.extend(["--skip", test_path]);
|
args.extend(["--skip", test_path]);
|
||||||
}
|
}
|
||||||
cmd(&args)
|
cmd(&args)
|
||||||
.env("COMPILETEST_FORCE_STAGE0", "1")
|
|
||||||
// Also run dist-only tests
|
// Also run dist-only tests
|
||||||
.env("COMPILETEST_ENABLE_DIST_TESTS", "1")
|
.env("COMPILETEST_ENABLE_DIST_TESTS", "1")
|
||||||
.run()
|
.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user