| ... | @@ -309,7 +309,7 @@ fn runStepNames( | ... | @@ -309,7 +309,7 @@ fn runStepNames( |
| 309 | } | 309 | } |
| 310 | } | 310 | } |
| 311 | | 311 | |
| 312 | const starting_steps = step_stack.items; | 312 | const starting_steps = try b.allocator.dupe(*Step, step_stack.items); |
| 313 | for (starting_steps) |s| { | 313 | for (starting_steps) |s| { |
| 314 | checkForDependencyLoop(b, s, &step_stack) catch |err| switch (err) { | 314 | checkForDependencyLoop(b, s, &step_stack) catch |err| switch (err) { |
| 315 | error.DependencyLoopDetected => return error.UncleanExit, | 315 | error.DependencyLoopDetected => return error.UncleanExit, |