diff options
| author | Xavier Bouchoux <xavierb@gmail.com> | 2023-07-10 19:04:10 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-11 00:17:08 -0700 |
| commit | 7a8002a5cf8e6607c1a2bfbd12fec3e60390fc71 (patch) | |
| tree | 6a05097ab20158a0f52afbfa85f9283fe3c6daaf /src/Compilation.zig | |
| parent | dbc560904aa5570648709cb392204f25884dddd8 (diff) | |
| download | zig-7a8002a5cf8e6607c1a2bfbd12fec3e60390fc71.tar.gz zig-7a8002a5cf8e6607c1a2bfbd12fec3e60390fc71.zip | |
remove arbitrary stderr size limit when spawning a child process tool
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 4e0a36d652..91747e8b01 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4067,9 +4067,7 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P try child.spawn(); - const stderr_reader = child.stderr.?.reader(); - - const stderr = try stderr_reader.readAllAlloc(arena, 10 * 1024 * 1024); + const stderr = try child.stderr.?.reader().readAllAlloc(arena, std.math.maxInt(usize)); const term = child.wait() catch |err| { return comp.failCObj(c_object, "unable to spawn {s}: {s}", .{ argv.items[0], @errorName(err) }); |
