about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-25 00:00:59 +0000
committerbors <bors@rust-lang.org>2014-08-25 00:00:59 +0000
commit833277e2d2c7cf5fcf995ef413412a21b4756ca7 (patch)
tree4b14317eb935cb35559bca22fd79aec222d7260f
parent6d9b219e6f84325ee32c70a29bf782e7ad54ebc8 (diff)
parent77e39b0560048f6d53c42a6c9a9d14bc95e61ce5 (diff)
auto merge of #16694 : vadimcn/rust/debug-linker, r=alexcrichton
Shows linker spew even when linking succeeds.  This is occasionally useful in order to see verbose linker output.
-rw-r--r--src/librustc/back/link.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
index 9ce0e3a3357..2877442e42b 100644
--- a/src/librustc/back/link.rs
+++ b/src/librustc/back/link.rs
@@ -1312,6 +1312,8 @@ fn link_natively(sess: &Session, trans: &CrateTranslation, dylib: bool,
                 sess.note(str::from_utf8(output.as_slice()).unwrap());
                 sess.abort_if_errors();
             }
+            debug!("linker stderr:\n{}", str::from_utf8_owned(prog.error).unwrap());
+            debug!("linker stdout:\n{}", str::from_utf8_owned(prog.output).unwrap());
         },
         Err(e) => {
             sess.err(format!("could not exec the linker `{}`: {}",