commit ff16a7c3fa29c95edefc8496114d577b4037fe6f (tree)
parent 08b2fd46ab79e1f381e360c01a4f66abff8cb4b7
Author: tehlordvortex <me@vrtx.sh>
Date: Tue, 7 Oct 2025 16:12:16 +0100
std.Build: duplicate sub_path for LazyPath's dependency variant
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/std/Build.zig b/lib/std/Build.zig
@@ -2524,7 +2524,10 @@ pub const LazyPath = union(enum) {
.up = gen.up,
.sub_path = dupePathInner(allocator, gen.sub_path),
} },
- .dependency => |dep| .{ .dependency = dep },
+ .dependency => |dep| .{ .dependency = .{
+ .dependency = dep.dependency,
+ .sub_path = dupePathInner(allocator, dep.sub_path),
+ } },
};
}
};