Skip to content

Commit

Permalink
Explain why we subtract one from the stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jul 27, 2017
1 parent cb27faf commit 3c43163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap/tool.rs
Expand Up @@ -249,6 +249,9 @@ impl Step for Rustdoc {
let build_compiler = if target_compiler.stage == 0 {
target_compiler
} else {
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
// we'd have stageN/bin/rustc and stageN/bin/rustdoc be effectively different stage
// compilers, which isn't what we want.
builder.compiler(target_compiler.stage - 1, target_compiler.host)
};

Expand Down

0 comments on commit 3c43163

Please sign in to comment.