diff options
| author | David Wood <david.wood@huawei.com> | 2022-07-06 10:56:08 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-07-06 11:15:13 +0100 |
| commit | e1065239fe768dbad7ecbe37be39cb3204476a87 (patch) | |
| tree | ae9a66af2bf3bf5a1b12b99380fefbe149b4991c /compiler/rustc_codegen_ssa/src | |
| parent | fc641f21c2f1ba0dcf7bc7750844f097e25b3029 (diff) | |
| download | rust-e1065239fe768dbad7ecbe37be39cb3204476a87.tar.gz rust-e1065239fe768dbad7ecbe37be39cb3204476a87.zip | |
ssa: abort if dwarf packaging fails
This should have been here from the start... oops. When `thorin` fails to package a DWARF package, that should fail compilation.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index c85c3bf5710..960e98243ac 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -653,6 +653,7 @@ fn link_dwarf_object<'a>( sess.struct_err("linking dwarf objects with thorin failed") .note(&format!("{:?}", e)) .emit(); + sess.abort_if_errors(); } } } |
