zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e0890734f0a4d9562d4561abc53d65b7d98f94c3 (tree)
parent 0733c8c5ca03f55fe8f65f74cea89dfccf6079b4
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 14 Apr 2023 11:59:27 -0700

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.

Diffstat:
Mlib/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 @@ -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,