We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b6812 commit ad4acbaCopy full SHA for ad4acba
src/bootstrap/tool.rs
@@ -260,6 +260,10 @@ impl Step for Rustdoc {
260
let target = target_compiler.host;
261
let build_compiler = if target_compiler.stage == 0 {
262
builder.compiler(0, builder.build.build)
263
+ } else if target_compiler.stage >= 2 {
264
+ // Past stage 2, we consider the compiler to be ABI-compatible and hence capable of
265
+ // building rustdoc itself.
266
+ target_compiler
267
} else {
268
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
269
// we'd have stageN/bin/rustc and stageN/bin/rustdoc be effectively different stage
0 commit comments