diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-12 17:20:18 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:09 -0800 |
| commit | ec56696503e702e063af8740a77376b2e7694c29 (patch) | |
| tree | 0781bc186578adb488bbce306970e4ba971ea06c /lib/compiler/objcopy.zig | |
| parent | e68ae8d7a1e78a25392e271d7ca894e0f09aa218 (diff) | |
| download | zig-ec56696503e702e063af8740a77376b2e7694c29.tar.gz zig-ec56696503e702e063af8740a77376b2e7694c29.zip | |
std.process.cleanExit: take an Io parameter
In case exit(0) will be called, this provides the opportunity for the
application's Io instance to be the one to clear the terminal in case
std.Progress or similar was used.
Diffstat (limited to 'lib/compiler/objcopy.zig')
| -rw-r--r-- | lib/compiler/objcopy.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/objcopy.zig b/lib/compiler/objcopy.zig index 90fd122294..2e272b074b 100644 --- a/lib/compiler/objcopy.zig +++ b/lib/compiler/objcopy.zig @@ -235,7 +235,7 @@ fn cmdObjCopy(gpa: Allocator, arena: Allocator, args: []const []const u8) !void const hdr = try server.receiveMessage(); switch (hdr.tag) { .exit => { - return std.process.cleanExit(); + return std.process.cleanExit(io); }, .update => { if (seen_update) fatal("zig objcopy only supports 1 update for now", .{}); @@ -250,7 +250,7 @@ fn cmdObjCopy(gpa: Allocator, arena: Allocator, args: []const []const u8) !void } } } - return std.process.cleanExit(); + return std.process.cleanExit(io); } const usage = |
