diff --git a/lib/build_runner.zig b/lib/build_runner.zig index d70dbf2919fae0a983fb2ebd81a28f1833990cee..9a8f1389790628a2d3677f46fec5144aa29fc559 100644 --- a/lib/build_runner.zig +++ b/lib/build_runner.zig @@ -309,7 +309,7 @@ fn runStepNames( } } - const starting_steps = step_stack.items; + const starting_steps = try b.allocator.dupe(*Step, step_stack.items); for (starting_steps) |s| { checkForDependencyLoop(b, s, &step_stack) catch |err| switch (err) { error.DependencyLoopDetected => return error.UncleanExit,