Skip to content

Commit ea10f8e

Browse files
committed
boostrap: skip no_std targets in Std doc step
1 parent f77247a commit ea10f8e

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/doc.rs

+4
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,10 @@ impl Step for Std {
580580

581581
fn make_run(run: RunConfig<'_>) {
582582
let crates = compile::std_crates_for_run_make(&run);
583+
let target_is_no_std = run.builder.no_std(run.target).unwrap_or(false);
584+
if crates.is_empty() && target_is_no_std {
585+
return;
586+
}
583587
run.builder.ensure(Std {
584588
stage: run.builder.top_stage,
585589
target: run.target,

0 commit comments

Comments
 (0)