pkg/libuv: generate cimport.zig for specific platforms

This commit is contained in:
Mitchell Hashimoto
2022-10-24 14:35:30 -07:00
parent 672e0d1d63
commit d346309cb3
3 changed files with 14854 additions and 1 deletions

View File

@ -7,5 +7,13 @@ pub usingnamespace switch (builtin.zig_backend) {
// Workaround for:
// https://github.com/ziglang/zig/issues/12325
else => @import("cimport.zig"),
//
// Generated by:
// zig translate-c -target aarch64-macos -lc -Ivendor/libuv/include vendor/libuv/include/uv.h
// (and then manually modified)
else => switch (builtin.os.tag) {
.macos => @import("cimport_macos.zig"),
.linux => @import("cimport_linux.zig"),
else => @compileError("unsupported OS for now, see this line"),
},
};

14845
pkg/libuv/cimport_macos.zig Normal file

File diff suppressed because it is too large Load Diff