diff options
| -rw-r--r-- | src/bootstrap/builder.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 9300b94156a..be9c926bedf 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() { |
