diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-02 14:41:08 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-03 07:10:43 -0700 |
| commit | d59d754e29857365940f5e5c2d732b52e8fc00e9 (patch) | |
| tree | 366bbd1fd979e85cef189405baef99096380ac71 /src/main_build_data.zig | |
| parent | cb295b84a0ec274a43da59041fa4a199e799798d (diff) | |
Zig 0.15: zig build GTK exe
Diffstat (limited to 'src/main_build_data.zig')
| -rw-r--r-- | src/main_build_data.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main_build_data.zig b/src/main_build_data.zig index 13e604389..9fffdd0d6 100644 --- a/src/main_build_data.zig +++ b/src/main_build_data.zig @@ -33,7 +33,9 @@ pub fn main() !void { const action = action_ orelse return error.NoAction; // Our output always goes to stdout. - const writer = std.io.getStdOut().writer(); + var buffer: [1024]u8 = undefined; + var stdout_writer = std.fs.File.stdout().writer(&buffer); + const writer = &stdout_writer.interface; switch (action) { .bash => try writer.writeAll(@import("extra/bash.zig").completions), .fish => try writer.writeAll(@import("extra/fish.zig").completions), |
