| ... | ... | @@ -695,9 +695,11 @@ const Os = switch (builtin.os.tag) { |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | fn update(w: *Watch, steps: []const Configuration.Step.Index) !void { |
| 698 | | const gpa = w.maker.gpa; |
| 698 | const maker = w.maker; |
| 699 | const gpa = maker.gpa; |
| 699 | 700 | const handles = &w.os.handles; |
| 700 | | for (steps) |step| { |
| 701 | for (steps) |step_index| { |
| 702 | const step = maker.stepByIndex(step_index); |
| 701 | 703 | for (step.inputs.table.keys(), step.inputs.table.values()) |path, *files| { |
| 702 | 704 | const reaction_set = rs: { |
| 703 | 705 | const gop = try w.dir_table.getOrPut(gpa, path); |
| ... | ... | @@ -732,7 +734,7 @@ const Os = switch (builtin.os.tag) { |
| 732 | 734 | for (files.items) |basename| { |
| 733 | 735 | const gop = try reaction_set.getOrPut(gpa, basename); |
| 734 | 736 | if (!gop.found_existing) gop.value_ptr.* = .{}; |
| 735 | | try gop.value_ptr.put(gpa, step, w.generation); |
| 737 | try gop.value_ptr.put(gpa, step_index, w.generation); |
| 736 | 738 | } |
| 737 | 739 | } |
| 738 | 740 | } |