From 22b981446238977d9c3f85eb4856324a9daa9753 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 02:21:02 -0300 Subject: macos: pardes builds for darwin again as far as a Linux host can take it (the tui links, the native shell's libpardes.a and its tests compile; the gui stops at SDL's frameworks and xcrun): recvmsg's CMSG_CLOEXEC and close_range are Linux's (darwin marks the received fds FD_CLOEXEC, closes the rest one by one), hungUp asks no fd of vaxis's test tty there, a kind exports pardes_addon only as its own library's root (macOS's libpardes.a had every compiled-in kind's), and macos.zig drops what the rewrite deleted (animation.zig, the CRT post pass and scene clock, pane transitions and their diff, the presentation's pointer map: the C ABI stays, its lists empty), with its scene, panel-order and panel-mask tests and the theme-fade half of its live-session test gone; the rest of upstream a41360e3 is dropped as superseded (views.zig's RenderMotion and drawOneAt, replica.zig's motion, input stamp, drawAt and animating with its two cursor tests, window_fields and the whitespace hunks) Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/kinds/addon.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kinds/addon.zig') diff --git a/src/kinds/addon.zig b/src/kinds/addon.zig index 229cf639..11635f7a 100644 --- a/src/kinds/addon.zig +++ b/src/kinds/addon.zig @@ -236,9 +236,10 @@ fn span(p: [*c]const u8, n: u64) []const u8 { return if (p == null) "" else p[0..n]; } -/// `pardes_addon` exported, when built as a library alone. +/// `pardes_addon` exported, when built as a library alone: the kind is its +/// root (a pardes built as a library, macOS's, has the kinds compiled in). pub fn exportLib(comptime ops_: *const c.pa_ops) void { - if (@import("builtin").output_mode == .Lib) @export(ops_, .{ .name = "pardes_addon" }); + if (@import("builtin").output_mode == .Lib and @hasDecl(@import("root"), "pardes_addon")) @export(ops_, .{ .name = "pardes_addon" }); } /// A kind's `pa_ops`: its head, and a C function for each of its own. -- cgit v1.3