| ... | @@ -1640,16 +1640,16 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_comp_progress_node: * | ... | @@ -1640,16 +1640,16 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_comp_progress_node: * |
| 1640 | } | 1640 | } |
| 1641 | } else { | 1641 | } else { |
| 1642 | child.stdin_behavior = .Ignore; | 1642 | child.stdin_behavior = .Ignore; |
| 1643 | child.stdout_behavior = .Pipe; | 1643 | child.stdout_behavior = .Ignore; |
| 1644 | child.stderr_behavior = .Pipe; | 1644 | child.stderr_behavior = .Pipe; |
| 1645 | | 1645 | |
| 1646 | try child.spawn(); | 1646 | try child.spawn(); |
| 1647 | | 1647 | |
| 1648 | const stdout_reader = child.stdout.?.reader(); | | |
| 1649 | const stderr_reader = child.stderr.?.reader(); | 1648 | const stderr_reader = child.stderr.?.reader(); |
| 1650 | | 1649 | |
| 1651 | // TODO https://github.com/ziglang/zig/issues/6343 | 1650 | // TODO https://github.com/ziglang/zig/issues/6343 |
| 1652 | const stdout = try stdout_reader.readAllAlloc(arena, std.math.maxInt(u32)); | 1651 | // Please uncomment and use stdout once this issue is fixed |
| | 1652 | // const stdout = try stdout_reader.readAllAlloc(arena, std.math.maxInt(u32)); |
| 1653 | const stderr = try stderr_reader.readAllAlloc(arena, 10 * 1024 * 1024); | 1653 | const stderr = try stderr_reader.readAllAlloc(arena, 10 * 1024 * 1024); |
| 1654 | | 1654 | |
| 1655 | const term = child.wait() catch |err| { | 1655 | const term = child.wait() catch |err| { |