Skip to content

Commit

Permalink
boostrap: skip no_std targets in Std doc step
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaskorz committed Feb 15, 2025
1 parent f77247a commit ea10f8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/build_steps/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ea10f8e

Please sign in to comment.