From 60a332406c10be922568e11dcc5144bb0f2d7a85 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 e3006fa255..5a5bce5127 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), + } }, }; } };