authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-23 13:11:50-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:36-07:00
log05fbeb4ea7acef3e9cfcce650343b1ef73e12e29
tree5141ee57635a089de6571ea5239faf0501ac8414
parent3e75a3e36b75cc8b85b4e7b1e825a11b0f1e8de1

Maker.Step.Run: fix wrong allocator used


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

lib/compiler/Maker/Step/Run.zig+2-1
...@@ -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 arena2108 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(
21222123
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,