| ... | ... | @@ -19,6 +19,7 @@ pub fn make( |
| 19 | 19 | const step = maker.stepByIndex(step_index); |
| 20 | 20 | const conf = &maker.scanned_config.configuration; |
| 21 | 21 | const graph = maker.graph; |
| 22 | const gpa = maker.gpa; |
| 22 | 23 | const arena = graph.arena; // TODO don't leak into process arena |
| 23 | 24 | const io = graph.io; |
| 24 | 25 | const conf_step = step_index.ptr(conf); |
| ... | ... | @@ -100,7 +101,8 @@ pub fn make( |
| 100 | 101 | }; |
| 101 | 102 | defer src_dir.close(io); |
| 102 | 103 | |
| 103 | | var it = try src_dir.walk(arena); |
| 104 | var it = try src_dir.walk(gpa); |
| 105 | defer it.deinit(); |
| 104 | 106 | next_entry: while (it.next(io) catch |err| switch (err) { |
| 105 | 107 | error.Canceled, error.OutOfMemory => |e| return e, |
| 106 | 108 | else => |e| return step.fail(maker, "failed to iterate directory {f}: {t}", .{ src_dir_path, e }), |