authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-12-03 17:52:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-01 17:51:18-07:00
log767eb5da7793d83a7b5b666e5367727fc4f0160b
tree7c36e03363197e3c3b845eef33b052580f44e464
parentf10b5268e80d3f77198a55161427ad8ba6edce05

fix infinite loop in Run step

Previously this relied on recursion; now it relies on the recursive iteration which is better, but means the recursive call needs to be deleted.

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

lib/std/Build/Step/Run.zig-1
...@@ -1297,7 +1297,6 @@ fn addPathForDynLibs(self: *Run, artifact: *Step.Compile) void {...@@ -1297,7 +1297,6 @@ fn addPathForDynLibs(self: *Run, artifact: *Step.Compile) void {
1297 if (item.module == &other.root_module) {1297 if (item.module == &other.root_module) {
1298 if (item.module.target.?.target.os.tag == .windows and other.isDynamicLibrary()) {1298 if (item.module.target.?.target.os.tag == .windows and other.isDynamicLibrary()) {
1299 addPathDir(self, fs.path.dirname(other.getEmittedBin().getPath(b)).?);1299 addPathDir(self, fs.path.dirname(other.getEmittedBin().getPath(b)).?);
1300 addPathForDynLibs(self, other);
1301 }1300 }
1302 }1301 }
1303 }1302 }