mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
pkg/libuv: generate cimport.zig for specific platforms
This commit is contained in:
@ -7,5 +7,13 @@ pub usingnamespace switch (builtin.zig_backend) {
|
|||||||
|
|
||||||
// Workaround for:
|
// Workaround for:
|
||||||
// https://github.com/ziglang/zig/issues/12325
|
// 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
14845
pkg/libuv/cimport_macos.zig
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user