| ... | ... | @@ -5687,14 +5687,18 @@ fn jitCmd( |
| 5687 | 5687 | child.stdout_behavior = if (options.capture == null) .Inherit else .Pipe; |
| 5688 | 5688 | child.stderr_behavior = .Inherit; |
| 5689 | 5689 | |
| 5690 | | try child.spawn(io); |
| 5690 | const term = t: { |
| 5691 | _ = try io.lockStderr(&.{}, .no_color); |
| 5692 | defer io.unlockStderr(); |
| 5693 | try child.spawn(io); |
| 5691 | 5694 | |
| 5692 | | if (options.capture) |ptr| { |
| 5693 | | var stdout_reader = child.stdout.?.readerStreaming(io, &.{}); |
| 5694 | | ptr.* = try stdout_reader.interface.allocRemaining(arena, .limited(std.math.maxInt(u32))); |
| 5695 | | } |
| 5695 | if (options.capture) |ptr| { |
| 5696 | var stdout_reader = child.stdout.?.readerStreaming(io, &.{}); |
| 5697 | ptr.* = try stdout_reader.interface.allocRemaining(arena, .limited(std.math.maxInt(u32))); |
| 5698 | } |
| 5696 | 5699 | |
| 5697 | | const term = try child.wait(io); |
| 5700 | break :t try child.wait(io); |
| 5701 | }; |
| 5698 | 5702 | switch (term) { |
| 5699 | 5703 | .Exited => |code| { |
| 5700 | 5704 | if (code == 0) { |