mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
20 lines
601 B
Zig
20 lines
601 B
Zig
const builtin = @import("builtin");
|
|
|
|
pub usingnamespace switch (builtin.zig_backend) {
|
|
.stage1 => @cImport({
|
|
@cInclude("uv.h");
|
|
}),
|
|
|
|
// Workaround for:
|
|
// https://github.com/ziglang/zig/issues/12325
|
|
//
|
|
// 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"),
|
|
},
|
|
};
|