Skip to content

Conversation

@alistair23
Copy link
Contributor

run_default_doc_steps() is called to ensure the documentation is built by Docs::run() and it should build the documentation if it isn't already built.

When running the install src command I'm seeing failures as the builder.doc_out(host) directory does not exist. This is because match_paths_to_steps_and_run() doesn't actually build any documentation as the paths.is_empty() causes an early return. This results in install failures as the */doc src directory doesn't exist.

This patch passes the paths to run_step_descriptions() when building documentation to ensure it is correctly built.

This fixes installing the Rust source code in OpenEmbedded.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jan 8, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 8, 2026

r? @Zalathar

rustbot has assigned @Zalathar.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

`run_default_doc_steps()` is called to ensure the documentation is built
by `Docs::run()` and it should build the documentation if it isn't
already built.

When running the `install src` command I'm seeing failures as the
`builder.doc_out(host)` directory does not exist. This is because
`match_paths_to_steps_and_run()` doesn't actually build any
documentation as the `paths.is_empty()` causes an early return. This
results in install failures as the `*/doc` src directory doesn't exist.

This patch passes the paths to `run_host_step_descriptions()` when building
documentation to ensure it is correctly built.

This fixes installing the Rust source code in OpenEmbedded.

Signed-off-by: Alistair Francis <[email protected]>
@alistair23 alistair23 force-pushed the alistair/doc-build-fixup branch from e2ed364 to 2e89bf7 Compare January 9, 2026 00:35
@Zalathar
Copy link
Member

Zalathar commented Jan 9, 2026

r? bootstrap

@rustbot rustbot assigned jieyouxu and unassigned Zalathar Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants