| ... | ... | @@ -560,8 +560,14 @@ test { |
| 560 | 560 | const Io = @This(); |
| 561 | 561 | |
| 562 | 562 | pub const Evented = switch (builtin.os.tag) { |
| 563 | | .linux => @import("Io/IoUring.zig"), |
| 564 | | .dragonfly, .freebsd, .netbsd, .openbsd, .macos, .ios, .tvos, .visionos, .watchos => @import("Io/Kqueue.zig"), |
| 563 | .linux => switch (builtin.cpu.arch) { |
| 564 | .x86_64, .aarch64 => @import("Io/IoUring.zig"), |
| 565 | else => void, // context-switching code not implemented yet |
| 566 | }, |
| 567 | .dragonfly, .freebsd, .netbsd, .openbsd, .macos, .ios, .tvos, .visionos, .watchos => switch (builtin.cpu.arch) { |
| 568 | .x86_64, .aarch64 => @import("Io/Kqueue.zig"), |
| 569 | else => void, // context-switching code not implemented yet |
| 570 | }, |
| 565 | 571 | else => void, |
| 566 | 572 | }; |
| 567 | 573 | pub const Threaded = @import("Io/Threaded.zig"); |