audit: handle process.Child.Term exhaustively and give useful exit information

This commit is contained in:
murtaza
2026-01-27 16:36:08 +01:00
parent a38c6bbcc4
commit 07b49c61ff
11 changed files with 111 additions and 42 deletions
+9 -1
View File
@@ -2012,7 +2012,15 @@ fn processOneTarget(io: Io, job: Job) void {
std.debug.print("llvm-tblgen exited with code {d}\n", .{code});
std.process.exit(1);
},
else => {
.signal => |sig| {
std.debug.print("llvm-tblgen terminated with signal {t}\n", .{sig});
std.process.exit(1);
},
.stopped => |sig| {
std.debug.print("llvm-tblgen stopped with signal {d}\n", .{sig});
std.process.exit(1);
},
.unknown => {
std.debug.print("llvm-tblgen crashed\n", .{});
std.process.exit(1);
},