From ff16a7c3fa29c95edefc8496114d577b4037fe6f Mon Sep 17 00:00:00 2001 From: tehlordvortex Date: Tue, 7 Oct 2025 16:12:16 +0100 Subject: [PATCH] std.Build: duplicate sub_path for LazyPath's dependency variant --- lib/std/Build.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/std/Build.zig b/lib/std/Build.zig index 548f951991..9b394f60f3 100644 --- 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), + } }, }; } };