authorgravatar for me@vrtx.shtehlordvortex <me@vrtx.sh> 2025-10-07 16:12:16+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-08 18:12:48+02:00
logff16a7c3fa29c95edefc8496114d577b4037fe6f
treed6de8dbdc793694ecb92f77855df3dd864018774
parent08b2fd46ab79e1f381e360c01a4f66abff8cb4b7
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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};