about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-12-28 23:23:41 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-12-28 23:23:41 +1100
commitc1c2d85cc9cf314d8a9248c8910229b99d914975 (patch)
treeb76b4732a5565b8387061ddaa750b45971f3e9b6 /src/bootstrap
parent8b3f7ac5262531aefa227f90387cf2eb34aae800 (diff)
downloadrust-c1c2d85cc9cf314d8a9248c8910229b99d914975.tar.gz
rust-c1c2d85cc9cf314d8a9248c8910229b99d914975.zip
bootstrap: Allow `./x check compiletest`
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/check.rs3
-rw-r--r--src/bootstrap/src/core/builder/mod.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/check.rs b/src/bootstrap/src/core/build_steps/check.rs
index f32d95fe836..b4d37b25a6c 100644
--- a/src/bootstrap/src/core/build_steps/check.rs
+++ b/src/bootstrap/src/core/build_steps/check.rs
@@ -501,6 +501,9 @@ tool_check_step!(
 );
 
 tool_check_step!(Bootstrap, "bootstrap", "src/bootstrap", SourceType::InTree, false);
+// Compiletest is implicitly "checked" when it gets built in order to run tests,
+// so this is mainly for people working on compiletest to run locally.
+tool_check_step!(Compiletest, "compiletest", "src/tools/compiletest", SourceType::InTree, false);
 
 /// Cargo's output path for the standard library in a given stage, compiled
 /// by a particular compiler for the specified target.
diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs
index 98f765dbd0f..18beaf3676d 100644
--- a/src/bootstrap/src/core/builder/mod.rs
+++ b/src/bootstrap/src/core/builder/mod.rs
@@ -905,6 +905,7 @@ impl<'a> Builder<'a> {
                 check::RustAnalyzer,
                 check::TestFloatParse,
                 check::Bootstrap,
+                check::Compiletest,
             ),
             Kind::Test => describe!(
                 crate::core::build_steps::toolstate::ToolStateCheck,