From e0890734f0a4d9562d4561abc53d65b7d98f94c3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 14 Apr 2023 11:59:27 -0700 Subject: [PATCH] std.Build.CompileStep: fix installLibraryHeaders regression reverts regression introduced in d2ad3f5074877475c8f0ec0fbbb323a05fe8cf78. The commit correctly removed dest_builder from InstallArtifactStep, but the change to installLibraryHeaders was incorrect since it affected different steps than that one. --- lib/std/Build/CompileStep.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Build/CompileStep.zig b/lib/std/Build/CompileStep.zig index 5c3b166282e51b88560083f4fac58c687fd9375c..7ca9dda23b94aa4d1eedf7bf43903b7f048ed372 100644 --- a/lib/std/Build/CompileStep.zig +++ b/lib/std/Build/CompileStep.zig @@ -511,7 +511,7 @@ pub fn installLibraryHeaders(cs: *CompileStep, l: *CompileStep) void { const T = id.Type(); const ptr = b.allocator.create(T) catch @panic("OOM"); ptr.* = step.cast(T).?.*; - ptr.step.owner = b; + ptr.dest_builder = b; break :blk &ptr.step; }, else => unreachable, -- 2.54.0