Output diagnostic information for rustdoc.

Use the information same as rustc.
This commit is contained in:
O01eg 2019-03-15 08:50:08 +03:00
parent bc44841ad2
commit bcf1a179ae
No known key found for this signature in database
GPG key ID: 8FBA74B3E78B4677

View file

@ -35,7 +35,7 @@ fn main() {
.arg("--cfg")
.arg("dox")
.arg("--sysroot")
.arg(sysroot)
.arg(&sysroot)
.env(bootstrap::util::dylib_path_var(),
env::join_paths(&dylib_path).unwrap());
@ -72,7 +72,13 @@ fn main() {
}
if verbose > 1 {
eprintln!("rustdoc command: {:?}", cmd);
eprintln!(
"rustdoc command: {:?}={:?} {:?}",
bootstrap::util::dylib_path_var(),
env::join_paths(&dylib_path).unwrap(),
cmd,
);
eprintln!("sysroot: {:?}", sysroot);
eprintln!("libdir: {:?}", libdir);
}