mir-opt: always run tests for the current target

This commit is contained in:
Nadrieril 2024-03-10 15:40:02 +01:00
parent 42825768b1
commit 222bdad733

View File

@ -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);
}
}
}