Skip to content

Commit 1224e13

Browse files
authored
Rollup merge of #84781 - jyn514:check-bootstrap, r=Mark-Simulacrum
Don't check bootstrap artifacts by default Bootstrap has to build successfully or this won't run, so all it checks are the tests, which are uncommon to change. Fixes #76624.
2 parents 2d496f4 + 3b4b1ea commit 1224e13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/check.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Step for CodegenBackend {
280280
}
281281

282282
macro_rules! tool_check_step {
283-
($name:ident, $path:literal, $($alias:literal, )* $source_type:path) => {
283+
($name:ident, $path:literal, $($alias:literal, )* $source_type:path $(, $default:literal )?) => {
284284
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
285285
pub struct $name {
286286
pub target: TargetSelection,
@@ -289,7 +289,7 @@ macro_rules! tool_check_step {
289289
impl Step for $name {
290290
type Output = ();
291291
const ONLY_HOSTS: bool = true;
292-
const DEFAULT: bool = true;
292+
const DEFAULT: bool = true $( && $default )?;
293293

294294
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
295295
run.paths(&[ $path, $($alias),* ])
@@ -368,7 +368,7 @@ tool_check_step!(Rustdoc, "src/tools/rustdoc", "src/librustdoc", SourceType::InT
368368
// rejected.
369369
tool_check_step!(Clippy, "src/tools/clippy", SourceType::InTree);
370370

371-
tool_check_step!(Bootstrap, "src/bootstrap", SourceType::InTree);
371+
tool_check_step!(Bootstrap, "src/bootstrap", SourceType::InTree, false);
372372

373373
/// Cargo's output path for the standard library in a given stage, compiled
374374
/// by a particular compiler for the specified target.

0 commit comments

Comments
 (0)