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

This commit is contained in:
tehlordvortex 2025-10-07 16:12:16 +01:00 committed by Linus Groh
parent 2aea7a42b0
commit 60a332406c

View file

@ -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),
} },
};
}
};