build: support 0.14.0

This drops support for older zig versions.
This commit is contained in:
2025-03-05 21:00:39 -07:00
parent aa27cc803c
commit e398fefdf6
4 changed files with 17 additions and 12 deletions

View File

@@ -81,10 +81,10 @@ pub fn build(b: *std.Build) void {
include_root.path(b, "uv/unix.h"),
"uv/unix.h",
);
if (!tinfo.isAndroid())
if (!tinfo.abi.isAndroid())
lib.linkSystemLibrary("pthread");
if (tinfo.isDarwin()) {
if (tinfo.os.tag.isDarwin()) {
lib.root_module.addCMacro("_DARWIN_UNLIMITED_SELECT", "1");
lib.root_module.addCMacro("_DARWIN_USE_64_BIT_INODE", "1");
lib.addCSourceFiles(.{
@@ -96,7 +96,7 @@ pub fn build(b: *std.Build) void {
include_root.path(b, "uv/darwin.h"),
"uv/darwin.h",
);
} else if (tinfo.isAndroid()) {
} else if (tinfo.abi.isAndroid()) {
lib.root_module.addCMacro("_GNU_SOURCE", "");
lib.linkSystemLibrary("dl");
lib.addCSourceFiles(.{