Skip to content

Commit 60a3324

Browse files
tehlordvortexlinusg
authored andcommitted
std.Build: duplicate sub_path for LazyPath's dependency variant
1 parent 2aea7a4 commit 60a3324

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/std/Build.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
};

0 commit comments

Comments
 (0)