Skip to content

Commit 3b4b1ea

Browse files
committed
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.
1 parent b52769b commit 3b4b1ea

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)