Skip to content

Commit 721f2e7

Browse files
Do not require stage 2 compiler for rustdoc
1 parent 1b4c921 commit 721f2e7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/bootstrap/builder.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -800,10 +800,7 @@ impl<'a> Builder<'a> {
800800
cargo.env("RUSTC_ERROR_FORMAT", error_format);
801801
}
802802
if cmd != "build" && cmd != "check" && want_rustdoc {
803-
cargo.env(
804-
"RUSTDOC_LIBDIR",
805-
self.rustc_libdir(self.compiler(2, self.config.build)),
806-
);
803+
cargo.env("RUSTDOC_LIBDIR", self.sysroot_libdir(compiler, self.config.build));
807804
}
808805

809806
if mode.is_tool() {

0 commit comments

Comments
 (0)