Commit 60a332406c

tehlordvortex <me@vrtx.sh>
2025-10-07 17:12:16
std.Build: duplicate sub_path for LazyPath's dependency variant
1 parent 2aea7a4
Changed files (1)
lib
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),
+            } },
         };
     }
 };