diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 811c7df5d9978a002e5764b43d03d2ba36ff929f..d7f795e4055341c3322ff47d7b83db2bd1a73c90 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -427,7 +427,7 @@ pub fn rustdoc_cmd(&self, compiler: Compiler) -> Command { } else { self.sysroot(compiler) }) - .env("RUSTC_LIBDIR", self.sysroot_libdir(compiler, self.build.build)) + .env("RUSTC_LIBDIR", self.rustc_libdir(compiler)) .env("CFG_RELEASE_CHANNEL", &self.build.config.channel) .env("RUSTDOC_REAL", self.rustdoc(compiler)); cmd