| ... | ... | @@ -198,20 +198,14 @@ fn cmdObjCopy( |
| 198 | 198 | return std.process.cleanExit(); |
| 199 | 199 | }, |
| 200 | 200 | .update => { |
| 201 | | if (seen_update) { |
| 202 | | std.debug.print("zig objcopy only supports 1 update for now\n", .{}); |
| 203 | | std.process.exit(1); |
| 204 | | } |
| 201 | if (seen_update) fatal("zig objcopy only supports 1 update for now", .{}); |
| 205 | 202 | seen_update = true; |
| 206 | 203 | |
| 207 | 204 | try server.serveEmitBinPath(output, .{ |
| 208 | 205 | .flags = .{ .cache_hit = false }, |
| 209 | 206 | }); |
| 210 | 207 | }, |
| 211 | | else => { |
| 212 | | std.debug.print("unsupported message: {s}", .{@tagName(hdr.tag)}); |
| 213 | | std.process.exit(1); |
| 214 | | }, |
| 208 | else => fatal("unsupported message: {s}", .{@tagName(hdr.tag)}), |
| 215 | 209 | } |
| 216 | 210 | } |
| 217 | 211 | } |