Auto merge of #43694 - semarie:rustdoc-ldpath, r=Mark-Simulacrum

explicitly add SYSROOT/lib directory to dylib var

it makes platforms without (or partial) rpath support to be able to run
rustdoc binary.
This commit is contained in:
bors 2017-08-08 09:46:17 +00:00
commit bcd75d661a

View File

@ -427,7 +427,7 @@ impl<'a> Builder<'a> {
} else { } else {
self.sysroot(compiler) 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("CFG_RELEASE_CHANNEL", &self.build.config.channel)
.env("RUSTDOC_REAL", self.rustdoc(compiler)); .env("RUSTDOC_REAL", self.rustdoc(compiler));
cmd cmd