From c982d6a6eb231db2230126d92525aca17ff75917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Tue, 8 Aug 2017 06:37:31 +0200 Subject: [PATCH] pass rustc_libdir instead of sysroot_libdir() for running rustdoc from rustbuild suggestion from Mark-Simulacrum --- src/bootstrap/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 811c7df5d99..d7f795e4055 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -427,7 +427,7 @@ impl<'a> Builder<'a> { } 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