fix std.Target.isDarwin function replaced with direct version

See https://github.com/ziglang/zig/pull/22589 .

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
Eric Joldasov 2025-02-20 21:48:05 +05:00
parent ee1d80da6a
commit 0918096301
No known key found for this signature in database
GPG key ID: 5C9C69060686B588

View file

@ -22,8 +22,8 @@ pub fn build(b: *std.Build) void {
exe.pie = pie; exe.pie = pie;
exe.root_module.linkSystemLibrary("ncursesw", .{}); exe.root_module.linkSystemLibrary("ncursesw", .{});
exe.root_module.linkSystemLibrary("libzstd", .{}); exe.root_module.linkSystemLibrary("libzstd", .{});
// https://github.com/ziglang/zig/blob/b52be973dfb7d1408218b8e75800a2da3dc69108/build.zig#L551-L554 // https://github.com/ziglang/zig/blob/faccd79ca5debbe22fe168193b8de54393257604/build.zig#L745-L748
if (target.result.isDarwin()) { if (target.result.os.tag.isDarwin()) {
// useful for package maintainers // useful for package maintainers
exe.headerpad_max_install_names = true; exe.headerpad_max_install_names = true;
} }