pkg/libuv: workaround stage2 issue

This commit is contained in:
Mitchell Hashimoto
2022-10-14 09:57:14 -07:00
parent a1087af7c8
commit 83c9390ac9
2 changed files with 5844 additions and 3 deletions

View File

@ -1,3 +1,11 @@
pub usingnamespace @cImport({ const builtin = @import("builtin");
@cInclude("uv.h");
}); pub usingnamespace switch (builtin.zig_backend) {
.stage1 => @cImport({
@cInclude("uv.h");
}),
// Workaround for:
// https://github.com/ziglang/zig/issues/12325
else => @import("cimport.zig"),
};

5833
pkg/libuv/cimport.zig Normal file

File diff suppressed because it is too large Load Diff