| ... | @@ -2106,6 +2106,7 @@ fn spawnChildAndCollect( | ... | @@ -2106,6 +2106,7 @@ fn spawnChildAndCollect( |
| 2106 | const graph = maker.graph; | 2106 | const graph = maker.graph; |
| 2107 | const io = graph.io; | 2107 | const io = graph.io; |
| 2108 | const arena = graph.arena; // TODO don't leak into process arena | 2108 | const arena = graph.arena; // TODO don't leak into process arena |
| | 2109 | const gpa = maker.gpa; |
| 2109 | const conf = &maker.scanned_config.configuration; | 2110 | const conf = &maker.scanned_config.configuration; |
| 2110 | const conf_step = run_index.ptr(conf); | 2111 | const conf_step = run_index.ptr(conf); |
| 2111 | const conf_run = conf_step.extended.get(conf.extra).run; | 2112 | const conf_run = conf_step.extended.get(conf.extra).run; |
| ... | @@ -2122,7 +2123,7 @@ fn spawnChildAndCollect( | ... | @@ -2122,7 +2123,7 @@ fn spawnChildAndCollect( |
| 2122 | | 2123 | |
| 2123 | // If an error occurs, it's caused by this command: | 2124 | // If an error occurs, it's caused by this command: |
| 2124 | assert(step.result_failed_command == null); | 2125 | assert(step.result_failed_command == null); |
| 2125 | step.result_failed_command = try std.zig.allocPrintCmd(arena, argv, .{ | 2126 | step.result_failed_command = try std.zig.allocPrintCmd(gpa, argv, .{ |
| 2126 | .cwd = child_cwd, | 2127 | .cwd = child_cwd, |
| 2127 | .child_env = environ_map, | 2128 | .child_env = environ_map, |
| 2128 | .parent_env = &graph.environ_map, | 2129 | .parent_env = &graph.environ_map, |