From ef14c732455dc089b56aab7392584c4fa8bc2c2d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 14 Aug 2025 20:32:47 -0700 Subject: Compilation: remove last instance of deprecatedReader This also makes initStreaming preemptively disable file size checking. --- src/Compilation.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 71ca226cc2..ed4d73c673 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6278,7 +6278,8 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: std.Pr try child.spawn(); - const stderr = try child.stderr.?.deprecatedReader().readAllAlloc(arena, std.math.maxInt(usize)); + var stderr_reader = child.stderr.?.readerStreaming(&.{}); + const stderr = try stderr_reader.interface.allocRemaining(arena, .limited(std.math.maxInt(u32))); const term = child.wait() catch |err| { return comp.failCObj(c_object, "failed to spawn zig clang {s}: {s}", .{ argv.items[0], @errorName(err) }); -- cgit v1.2.3