]> git.lizzy.rs Git - rust.git/commitdiff
Log linker stderr and stdout.
authorVadim Chugunov <vadimcn@gmail.com>
Sat, 23 Aug 2014 20:19:29 +0000 (13:19 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Sat, 23 Aug 2014 21:38:41 +0000 (14:38 -0700)
src/librustc/back/link.rs

index 7c2b0ba6168177dceb0e43ccbb3bac10c0345ad9..1595b553b8f9d862eda52d8f96b1fac373159d33 100644 (file)
@@ -1305,6 +1305,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 `{}`: {}",