Skip to content

Commit

Permalink
Log linker stderr and stdout.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Aug 23, 2014
1 parent 03fd90b commit 77e39b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/back/link.rs
Expand Up @@ -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 `{}`: {}",
Expand Down

5 comments on commit 77e39b0

@bors
Copy link
Contributor

@bors bors commented on 77e39b0 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at vadimcn@77e39b0

@bors
Copy link
Contributor

@bors bors commented on 77e39b0 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging vadimcn/rust/debug-linker = 77e39b0 into auto

@bors
Copy link
Contributor

@bors bors commented on 77e39b0 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vadimcn/rust/debug-linker = 77e39b0 merged ok, testing candidate = 833277e

@bors
Copy link
Contributor

@bors bors commented on 77e39b0 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 833277e

Please sign in to comment.