authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-24 22:51:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:36-07:00
logd1a446203222bb5bbd1d46139b93a13367c1e8bb
tree6ce34c8964f8efcb36939911e4e1add233aeb71f
parentf79ae3214c41183c90ca4d7acb0ac0ded3d99f61

Maker.Step.InstallArtifact: use gpa for fs walking


1 files changed, 3 insertions(+), 1 deletions(-)

lib/compiler/Maker/Step/InstallArtifact.zig+3-1
......@@ -19,6 +19,7 @@ pub fn make(
1919 const step = maker.stepByIndex(step_index);
2020 const conf = &maker.scanned_config.configuration;
2121 const graph = maker.graph;
22 const gpa = maker.gpa;
2223 const arena = graph.arena; // TODO don't leak into process arena
2324 const io = graph.io;
2425 const conf_step = step_index.ptr(conf);
......@@ -100,7 +101,8 @@ pub fn make(
100101 };
101102 defer src_dir.close(io);
102103
103 var it = try src_dir.walk(arena);
104 var it = try src_dir.walk(gpa);
105 defer it.deinit();
104106 next_entry: while (it.next(io) catch |err| switch (err) {
105107 error.Canceled, error.OutOfMemory => |e| return e,
106108 else => |e| return step.fail(maker, "failed to iterate directory {f}: {t}", .{ src_dir_path, e }),