Don't try to cross-document bootstrap tools

This commit is contained in:
Jakub Beránek 2025-08-20 15:16:18 +02:00
parent ba1bc64325
commit 3303770847
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -994,7 +994,7 @@ macro_rules! tool_doc {
(compilers.build_compiler(), Mode::ToolRustc)
} else {
// bootstrap/host tools have to be documented with the stage 0 compiler
(prepare_doc_compiler(run.builder, target, 1), Mode::ToolBootstrap)
(prepare_doc_compiler(run.builder, run.builder.host_target, 1), Mode::ToolBootstrap)
};
run.builder.ensure($tool { build_compiler, mode, target });