authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-14 11:59:27-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-14 11:59:27-07:00
loge0890734f0a4d9562d4561abc53d65b7d98f94c3
tree6a71babc6581730476594f73ba56c4509486bbf5
parent0733c8c5ca03f55fe8f65f74cea89dfccf6079b4

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.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Build/CompileStep.zig+1-1
...@@ -511,7 +511,7 @@ pub fn installLibraryHeaders(cs: *CompileStep, l: *CompileStep) void {...@@ -511,7 +511,7 @@ pub fn installLibraryHeaders(cs: *CompileStep, l: *CompileStep) void {
511 const T = id.Type();511 const T = id.Type();
512 const ptr = b.allocator.create(T) catch @panic("OOM");512 const ptr = b.allocator.create(T) catch @panic("OOM");
513 ptr.* = step.cast(T).?.*;513 ptr.* = step.cast(T).?.*;
514 ptr.step.owner = b;514 ptr.dest_builder = b;
515 break :blk &ptr.step;515 break :blk &ptr.step;
516 },516 },
517 else => unreachable,517 else => unreachable,