mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
audit: handle process.Child.Term exhaustively and give useful exit information
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user