about summary refs log tree commit diff
diff options
context:
space:
mode:
authorO01eg <o01eg@yandex.ru>2019-03-15 08:50:08 +0300
committerO01eg <o01eg@yandex.ru>2019-03-15 08:50:08 +0300
commitbcf1a179aed651fe27fef7578bfc25b063a33a8e (patch)
tree33ba906afb2cb303df1683e88b08af4de888b54b
parentbc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7 (diff)
downloadrust-bcf1a179aed651fe27fef7578bfc25b063a33a8e.tar.gz
rust-bcf1a179aed651fe27fef7578bfc25b063a33a8e.zip
Output diagnostic information for rustdoc.
Use the information same as rustc.
-rw-r--r--src/bootstrap/bin/rustdoc.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bootstrap/bin/rustdoc.rs b/src/bootstrap/bin/rustdoc.rs
index 36beec3a944..085f243785c 100644
--- a/src/bootstrap/bin/rustdoc.rs
+++ b/src/bootstrap/bin/rustdoc.rs
@@ -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);
     }