std.Build: duplicate sub_path for LazyPath's dependency variant
This commit is contained in:
committed by
Alex Rønne Petersen
parent
08b2fd46ab
commit
ff16a7c3fa
@@ -2524,7 +2524,10 @@ pub const LazyPath = union(enum) {
|
|||||||
.up = gen.up,
|
.up = gen.up,
|
||||||
.sub_path = dupePathInner(allocator, gen.sub_path),
|
.sub_path = dupePathInner(allocator, gen.sub_path),
|
||||||
} },
|
} },
|
||||||
.dependency => |dep| .{ .dependency = dep },
|
.dependency => |dep| .{ .dependency = .{
|
||||||
|
.dependency = dep.dependency,
|
||||||
|
.sub_path = dupePathInner(allocator, dep.sub_path),
|
||||||
|
} },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user