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.
2 parents 0c756de + 53ac852 commit bb70ce6Copy full SHA for bb70ce6
src/librustc/back/write.rs
@@ -714,7 +714,13 @@ pub fn run_passes(sess: &Session,
714
.stdout(::std::io::process::InheritFd(1))
715
.stderr(::std::io::process::InheritFd(2));
716
match cmd.status() {
717
- Ok(_) => {},
+ Ok(status) => {
718
+ if !status.success() {
719
+ sess.err(format!("linking of {} with `{}` failed",
720
+ output_path.display(), cmd).as_slice());
721
+ sess.abort_if_errors();
722
+ }
723
+ },
724
Err(e) => {
725
sess.err(format!("could not exec the linker `{}`: {}",
726
pname,
0 commit comments