From 721f2e789ae821e85f30ac6bfad8da31b6f1c692 Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Fri, 8 Jun 2018 08:29:15 -0600 Subject: [PATCH] Do not require stage 2 compiler for rustdoc --- src/bootstrap/builder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 9300b94156acb..be9c926bedf22 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -800,10 +800,7 @@ impl<'a> Builder<'a> { cargo.env("RUSTC_ERROR_FORMAT", error_format); } if cmd != "build" && cmd != "check" && want_rustdoc { - cargo.env( - "RUSTDOC_LIBDIR", - self.rustc_libdir(self.compiler(2, self.config.build)), - ); + cargo.env("RUSTDOC_LIBDIR", self.sysroot_libdir(compiler, self.config.build)); } if mode.is_tool() {