mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
objcopy: use the fatal helper method
This commit is contained in:
parent
dad07fb6f3
commit
768cb7e406
1 changed files with 2 additions and 8 deletions
|
|
@ -198,20 +198,14 @@ fn cmdObjCopy(
|
||||||
return std.process.cleanExit();
|
return std.process.cleanExit();
|
||||||
},
|
},
|
||||||
.update => {
|
.update => {
|
||||||
if (seen_update) {
|
if (seen_update) fatal("zig objcopy only supports 1 update for now", .{});
|
||||||
std.debug.print("zig objcopy only supports 1 update for now\n", .{});
|
|
||||||
std.process.exit(1);
|
|
||||||
}
|
|
||||||
seen_update = true;
|
seen_update = true;
|
||||||
|
|
||||||
try server.serveEmitBinPath(output, .{
|
try server.serveEmitBinPath(output, .{
|
||||||
.flags = .{ .cache_hit = false },
|
.flags = .{ .cache_hit = false },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
else => {
|
else => fatal("unsupported message: {s}", .{@tagName(hdr.tag)}),
|
||||||
std.debug.print("unsupported message: {s}", .{@tagName(hdr.tag)});
|
|
||||||
std.process.exit(1);
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue