diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-27 09:06:48 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-27 12:53:01 -0700 |
| commit | bb70ce68042bec5b4db133af1c35df282fb419b8 (patch) | |
| tree | 13e0cdfb3ff5d4fa52a02c27a854e714f6747a0e /src | |
| parent | 0c756de6c51f391789cdcae0c07ae9d63e1f61a0 (diff) | |
| parent | 53ac852bf0cef1db971d27dd9c733c639b85430d (diff) | |
| download | rust-bb70ce68042bec5b4db133af1c35df282fb419b8.tar.gz rust-bb70ce68042bec5b4db133af1c35df282fb419b8.zip | |
rollup merge of #18239 : msiemens/fix-ice-rename-failed
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/back/write.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/librustc/back/write.rs b/src/librustc/back/write.rs index f1cd8b52e5e..474e8e45d94 100644 --- a/src/librustc/back/write.rs +++ b/src/librustc/back/write.rs @@ -714,7 +714,13 @@ pub fn run_passes(sess: &Session, .stdout(::std::io::process::InheritFd(1)) .stderr(::std::io::process::InheritFd(2)); match cmd.status() { - Ok(_) => {}, + Ok(status) => { + if !status.success() { + sess.err(format!("linking of {} with `{}` failed", + output_path.display(), cmd).as_slice()); + sess.abort_if_errors(); + } + }, Err(e) => { sess.err(format!("could not exec the linker `{}`: {}", pname, |
