core: fix target for macos libc search

This commit is contained in:
Jeffrey C. Ollie
2026-03-19 00:10:12 -05:00
parent 64de418f38
commit 264a1a7cdd

View File

@@ -161,7 +161,7 @@ pub fn add(
});
const libc = try std.zig.LibCInstallation.findNative(.{
.allocator = b.allocator,
.target = target,
.target = &target.result,
.verbose = false,
});
c.addSystemIncludePath(.{ .cwd_relative = libc.sys_include_dir.? });