Compare commits
3 Commits
dd606c7686
...
c1ccce24e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1ccce24e1 | ||
|
b465d9ae43
|
|||
|
|
e4dc0ddc67
|
19
build.zig
19
build.zig
@@ -130,6 +130,18 @@ pub fn build(b: *std.Build) void {
|
||||
"uv/linux.h",
|
||||
);
|
||||
},
|
||||
.emscripten => {
|
||||
root_module.addCMacro("UV_PLATFORM_LOOP_FIELDS", "struct pollfd* poll_fds; size_t poll_fds_used; size_t poll_fds_size; unsigned char poll_fds_iterating;");
|
||||
root_module.addCSourceFiles(.{
|
||||
.root = src_root,
|
||||
.files = emscripten_sources,
|
||||
.flags = cflags,
|
||||
});
|
||||
lib.installHeader(
|
||||
include_root.path(b, "uv/posix.h"),
|
||||
"uv/posix.h",
|
||||
);
|
||||
},
|
||||
.haiku => {
|
||||
root_module.addCMacro("_BSD_SOURCE", "");
|
||||
root_module.linkSystemLibrary("bsd", .{});
|
||||
@@ -440,6 +452,12 @@ const solaris_sources: []const []const u8 = &.{
|
||||
"unix/sunos.c",
|
||||
};
|
||||
|
||||
const emscripten_sources: []const []const u8 = &.{
|
||||
"unix/no-fsevents.c",
|
||||
"unix/no-proctitle.c",
|
||||
"unix/posix-hrtime.c",
|
||||
};
|
||||
|
||||
const haiku_sources: []const []const u8 = &.{
|
||||
"unix/haiku.c",
|
||||
"unix/bsd-ifaddrs.c",
|
||||
@@ -718,6 +736,7 @@ const test_sources: []const []const u8 = &.{
|
||||
"test-udp-send-immediate.c",
|
||||
"test-udp-sendmmsg-error.c",
|
||||
"test-udp-send-unreachable.c",
|
||||
"test-udp-recv-cb-close-pollerr.c",
|
||||
"test-udp-try-send.c",
|
||||
"test-udp-recv-in-a-row.c",
|
||||
"test-udp-recvmsg-unreachable-error.c",
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
.minimum_zig_version = "0.14.0",
|
||||
.dependencies = .{
|
||||
.libuv = .{
|
||||
.url = "git+https://github.com/libuv/libuv?ref=v1.52.0#b556c0629d0fd250b5feefbc91b84c6f5e3dae48",
|
||||
.hash = "N-V-__8AALHpRAD4RWLGxEOQL1GdKH2xwNlq0f51wZBIPIOV",
|
||||
.url = "git+https://github.com/libuv/libuv?ref=v1.52.1#a19ceeb13a3689cfd20bf96b283136cff08a0dc6",
|
||||
.hash = "N-V-__8AAF0TRQB7f11_kVHJXTkp9QLCD20udiPXEsoNg9cC",
|
||||
},
|
||||
},
|
||||
.paths = .{
|
||||
|
||||
Reference in New Issue
Block a user