We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8124846 commit cff9c67Copy full SHA for cff9c67
src/comp/back/link.rs
@@ -596,10 +596,11 @@ fn link_binary(sess: session::session,
596
597
log #fmt("gcc link args: %s", str::connect(gcc_args, " "));
598
// We run 'gcc' here
599
- let err_code = run::run_program(prog, gcc_args);
600
- if 0 != err_code {
601
- sess.err(#fmt["linking with gcc failed with code %d", err_code]);
+ let prog = run::program_output(prog, gcc_args);
+ if 0 != prog.status {
+ sess.err(#fmt["linking with gcc failed with code %d", prog.status]);
602
sess.note(#fmt["gcc arguments: %s", str::connect(gcc_args, " ")]);
603
+ sess.note(prog.err + prog.out);
604
sess.abort_if_errors();
605
}
606
// Clean up on Darwin
0 commit comments