From e1065239fe768dbad7ecbe37be39cb3204476a87 Mon Sep 17 00:00:00 2001 From: David Wood Date: Wed, 6 Jul 2022 10:56:08 +0100 Subject: [PATCH] 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. --- compiler/rustc_codegen_ssa/src/back/link.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index c85c3bf57106..960e98243ac7 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(); } } }