Skip to content

Commit 222bdad

Browse files
committed
mir-opt: always run tests for the current target
1 parent 4282576 commit 222bdad

File tree

1 file changed

+4
-2
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-2
lines changed

src/bootstrap/src/core/build_steps/test.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,10 @@ impl Step for MirOpt {
15491549
})
15501550
};
15511551

1552+
run(self.target);
1553+
1554+
// Run more targets with `--bless`. But we always run the host target first, since some
1555+
// tests use very specific `only` clauses that are not covered by the target set below.
15521556
if builder.config.cmd.bless() {
15531557
// All that we really need to do is cover all combinations of 32/64-bit and unwind/abort,
15541558
// but while we're at it we might as well flex our cross-compilation support. This
@@ -1567,8 +1571,6 @@ impl Step for MirOpt {
15671571
});
15681572
run(panic_abort_target);
15691573
}
1570-
} else {
1571-
run(self.target);
15721574
}
15731575
}
15741576
}

0 commit comments

Comments
 (0)