From 2e77ff7ca9c25a262969cf55992d0bf2ecaa483d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 12 Aug 2026 21:45:43 -0700 Subject: [PATCH] zig build: lock stderr before replacing process image fixes not clearing `std.Progress` output before executing maker --- src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.zig b/src/main.zig index f0850ffa08462b1841362e76b602ad11d8012529..c577bf1079e218b0ae2a2ca281f89001f1d4e52f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -5134,6 +5134,7 @@ fn jitCmdInner( } if (process.can_replace and options.capture == null) { + _ = try io.lockStderr(&.{}, .no_color); const err = process.replace(io, .{ .argv = child_argv.items, .environ_map = environ_map }); const cmd = try std.mem.join(arena, " ", child_argv.items); fatal("the following command failed to execve with {t}:\n{s}", .{ err, cmd }); -- 2.54.0