Skip to content

Commit c56a25b

Browse files
committed
Compilation: remove last instance of deprecatedReader
1 parent 8adabaa commit c56a25b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Compilation.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6266,7 +6266,8 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: std.Pr
62666266

62676267
try child.spawn();
62686268

6269-
const stderr = try child.stderr.?.deprecatedReader().readAllAlloc(arena, std.math.maxInt(usize));
6269+
var stderr_reader = child.stderr.?.readerStreaming();
6270+
const stderr = try stderr_reader.interface.allocRemaining(arena, .limited(std.math.maxInt(u32)));
62706271

62716272
const term = child.wait() catch |err| {
62726273
return comp.failCObj(c_object, "failed to spawn zig clang {s}: {s}", .{ argv.items[0], @errorName(err) });

0 commit comments

Comments
 (0)