| ... | @@ -5151,7 +5151,12 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void { | ... | @@ -5151,7 +5151,12 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void { |
| 5151 | child.stdout_behavior = .Inherit; | 5151 | child.stdout_behavior = .Inherit; |
| 5152 | child.stderr_behavior = .Inherit; | 5152 | child.stderr_behavior = .Inherit; |
| 5153 | | 5153 | |
| 5154 | const term = try child.spawnAndWait(); | 5154 | const term = t: { |
| | 5155 | std.debug.lockStdErr(); |
| | 5156 | defer std.debug.unlockStdErr(); |
| | 5157 | break :t try child.spawnAndWait(); |
| | 5158 | }; |
| | 5159 | |
| 5155 | switch (term) { | 5160 | switch (term) { |
| 5156 | .Exited => |code| { | 5161 | .Exited => |code| { |
| 5157 | if (code == 0) return cleanExit(); | 5162 | if (code == 0) return cleanExit(); |