authorgravatar for me@vrtx.shtehlordvortex <me@vrtx.sh> 2025-10-07 16:12:16+01:00
committergravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-10-08 11:50:51+01:00
log60a332406c10be922568e11dcc5144bb0f2d7a85
treed772129658d04cd5edb1c9e489bdace4f27d42ea
parent2aea7a42b085f1775889f9d49141faa8098221f9

std.Build: duplicate sub_path for LazyPath's dependency variant


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

lib/std/Build.zig+4-1
......@@ -2524,7 +2524,10 @@ pub const LazyPath = union(enum) {
25242524 .up = gen.up,
25252525 .sub_path = dupePathInner(allocator, gen.sub_path),
25262526 } },
2527 .dependency => |dep| .{ .dependency = dep },
2527 .dependency => |dep| .{ .dependency = .{
2528 .dependency = dep.dependency,
2529 .sub_path = dupePathInner(allocator, dep.sub_path),
2530 } },
25282531 };
25292532 }
25302533};