boostrap: skip no_std targets in Std doc step

This commit is contained in:
Niklas Korz 2025-02-15 12:04:48 +01:00
parent f77247ac59
commit ea10f8efa1

View file

@ -580,6 +580,10 @@ impl Step for Std {
fn make_run(run: RunConfig<'_>) {
let crates = compile::std_crates_for_run_make(&run);
let target_is_no_std = run.builder.no_std(run.target).unwrap_or(false);
if crates.is_empty() && target_is_no_std {
return;
}
run.builder.ensure(Std {
stage: run.builder.top_stage,
target: run.target,