commit 60a332406c10be922568e11dcc5144bb0f2d7a85 (tree)
parent 2aea7a42b085f1775889f9d49141faa8098221f9
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),
+ } },
};
}
};