From 222bdad7336f5a694fc5b390054ac3036e150e20 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 10 Mar 2024 15:40:02 +0100 Subject: [PATCH] mir-opt: always run tests for the current target --- src/bootstrap/src/core/build_steps/test.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 4a4497e57db..6f41188f872 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -1549,6 +1549,10 @@ impl Step for MirOpt { }) }; + run(self.target); + + // Run more targets with `--bless`. But we always run the host target first, since some + // tests use very specific `only` clauses that are not covered by the target set below. if builder.config.cmd.bless() { // All that we really need to do is cover all combinations of 32/64-bit and unwind/abort, // but while we're at it we might as well flex our cross-compilation support. This @@ -1567,8 +1571,6 @@ impl Step for MirOpt { }); run(panic_abort_target); } - } else { - run(self.target); } } }