diff options
| author | Niklas Korz <niklas@niklaskorz.de> | 2025-02-15 12:04:48 +0100 |
|---|---|---|
| committer | Niklas Korz <niklas@niklaskorz.de> | 2025-02-15 12:04:48 +0100 |
| commit | ea10f8efa1d9515a2ced80a05245c5bd19e55040 (patch) | |
| tree | 933e812af7597d29ef9c4386d166915805230a38 /src | |
| parent | f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 (diff) | |
| download | rust-ea10f8efa1d9515a2ced80a05245c5bd19e55040.tar.gz rust-ea10f8efa1d9515a2ced80a05245c5bd19e55040.zip | |
boostrap: skip no_std targets in Std doc step
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/doc.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/doc.rs b/src/bootstrap/src/core/build_steps/doc.rs index dedcc139ae1..1f0787b9c63 100644 --- a/src/bootstrap/src/core/build_steps/doc.rs +++ b/src/bootstrap/src/core/build_steps/doc.rs @@ -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, |
