bootstrap: wire up src/tools/features-status-dump as a runnable tool
And also register its check step. Co-authored-by: Jane Losare-Lusby <jlusby42@gmail.com>
This commit is contained in:
parent
93563980a3
commit
cbcba57c05
4 changed files with 35 additions and 0 deletions
|
|
@ -455,6 +455,7 @@ tool_check_step!(Rls { path: "src/tools/rls" });
|
|||
tool_check_step!(Rustfmt { path: "src/tools/rustfmt" });
|
||||
tool_check_step!(MiroptTestTools { path: "src/tools/miropt-test-tools" });
|
||||
tool_check_step!(TestFloatParse { path: "src/etc/test-float-parse" });
|
||||
tool_check_step!(FeaturesStatusDump { path: "src/tools/features-status-dump" });
|
||||
|
||||
tool_check_step!(Bootstrap { path: "src/bootstrap", default: false });
|
||||
|
||||
|
|
|
|||
|
|
@ -311,3 +311,34 @@ impl Step for UnicodeTableGenerator {
|
|||
cmd.run(builder);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialOrd, Ord, Clone, Hash, PartialEq, Eq)]
|
||||
pub struct FeaturesStatusDump;
|
||||
|
||||
impl Step for FeaturesStatusDump {
|
||||
type Output = ();
|
||||
const ONLY_HOSTS: bool = true;
|
||||
|
||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
run.path("src/tools/features-status-dump")
|
||||
}
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
run.builder.ensure(FeaturesStatusDump);
|
||||
}
|
||||
|
||||
fn run(self, builder: &Builder<'_>) {
|
||||
let mut cmd = builder.tool_cmd(Tool::FeaturesStatusDump);
|
||||
|
||||
cmd.arg("--library-path");
|
||||
cmd.arg(builder.src.join("library"));
|
||||
|
||||
cmd.arg("--compiler-path");
|
||||
cmd.arg(builder.src.join("compiler"));
|
||||
|
||||
cmd.arg("--output-path");
|
||||
cmd.arg(builder.out.join("features-status-dump.json"));
|
||||
|
||||
cmd.run(builder);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -363,6 +363,7 @@ bootstrap_tool!(
|
|||
RustcPerfWrapper, "src/tools/rustc-perf-wrapper", "rustc-perf-wrapper";
|
||||
WasmComponentLd, "src/tools/wasm-component-ld", "wasm-component-ld", is_unstable_tool = true, allow_features = "min_specialization";
|
||||
UnicodeTableGenerator, "src/tools/unicode-table-generator", "unicode-table-generator";
|
||||
FeaturesStatusDump, "src/tools/features-status-dump", "features-status-dump";
|
||||
);
|
||||
|
||||
/// These are the submodules that are required for rustbook to work due to
|
||||
|
|
|
|||
|
|
@ -938,6 +938,7 @@ impl<'a> Builder<'a> {
|
|||
check::Bootstrap,
|
||||
check::RunMakeSupport,
|
||||
check::Compiletest,
|
||||
check::FeaturesStatusDump,
|
||||
),
|
||||
Kind::Test => describe!(
|
||||
crate::core::build_steps::toolstate::ToolStateCheck,
|
||||
|
|
@ -1089,6 +1090,7 @@ impl<'a> Builder<'a> {
|
|||
run::GenerateWindowsSys,
|
||||
run::GenerateCompletions,
|
||||
run::UnicodeTableGenerator,
|
||||
run::FeaturesStatusDump,
|
||||
),
|
||||
Kind::Setup => {
|
||||
describe!(setup::Profile, setup::Hook, setup::Link, setup::Editor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue