diff options
| author | mlarouche <michael.larouche@gmail.com> | 2020-10-18 16:42:03 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-25 21:33:46 -0400 |
| commit | e3fed3c8141805702146601bc889341638a9c64e (patch) | |
| tree | e636de7a972c3f731b26f878ca602dc9d0244501 /src/Compilation.zig | |
| parent | 0a619c68a651db80c68cfe3a0f0a9682a845f7e7 (diff) | |
| download | zig-e3fed3c8141805702146601bc889341638a9c64e.tar.gz zig-e3fed3c8141805702146601bc889341638a9c64e.zip | |
Temp Fix for deadlock in C compilation, found and tested on Windows
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a42c08af25..4b7dc720e1 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1640,16 +1640,16 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_comp_progress_node: * } } else { child.stdin_behavior = .Ignore; - child.stdout_behavior = .Pipe; + child.stdout_behavior = .Ignore; child.stderr_behavior = .Pipe; try child.spawn(); - const stdout_reader = child.stdout.?.reader(); const stderr_reader = child.stderr.?.reader(); // TODO https://github.com/ziglang/zig/issues/6343 - const stdout = try stdout_reader.readAllAlloc(arena, std.math.maxInt(u32)); + // Please uncomment and use stdout once this issue is fixed + // const stdout = try stdout_reader.readAllAlloc(arena, std.math.maxInt(u32)); const stderr = try stderr_reader.readAllAlloc(arena, 10 * 1024 * 1024); const term = child.wait() catch |err| { |
