From 7a8002a5cf8e6607c1a2bfbd12fec3e60390fc71 Mon Sep 17 00:00:00 2001 From: Xavier Bouchoux Date: Mon, 10 Jul 2023 19:04:10 +0000 Subject: remove arbitrary stderr size limit when spawning a child process tool --- src/Compilation.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Compilation.zig') 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) }); -- cgit v1.2.3