Add library path for real rustdoc with RUSTDOC_LIBDIR environment variable.

This commit is contained in:
O01eg
2018-01-12 10:04:02 +03:00
parent c87a1086dc
commit f05282f036
2 changed files with 5 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ use std::path::PathBuf;
fn main() {
let args = env::args_os().skip(1).collect::<Vec<_>>();
let rustdoc = env::var_os("RUSTDOC_REAL").expect("RUSTDOC_REAL was not set");
let libdir = env::var_os("RUSTC_LIBDIR").expect("RUSTC_LIBDIR was not set");
let libdir = env::var_os("RUSTDOC_LIBDIR").expect("RUSTDOC_LIBDIR was not set");
let stage = env::var("RUSTC_STAGE").expect("RUSTC_STAGE was not set");
let sysroot = env::var_os("RUSTC_SYSROOT").expect("RUSTC_SYSROOT was not set");