summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 22:49:11 -0300
committerGabriel Schneider <[email protected]>2026-11-06 23:38:31 -0300
commitd03b727cddfcec41b464ddf6178f17d0e831e529 (patch)
treedee59f1590466c1a7b343be5cf873f4d1a27a7e1 /src/macos.zig
parent8704fa7662f40d70552daa917144987a46e14b51 (diff)
downloadpardes-d03b727cddfcec41b464ddf6178f17d0e831e529.tar.gz
pardes-d03b727cddfcec41b464ddf6178f17d0e831e529.zip
kinds #50, macOS by pattern: off Linux every core module has the addons compiled in (Addon.zig's loader is a Linux memfd, now refused elsewhere at compile time), the native shell registers them at start as the tui and gui do, and `-Dmacos-sdk=<path>` hands SDL's build the SDK's paths, so `-Dplatform=gui -Dtarget=aarch64-macos` configures (and `zig build core-test -Dtarget=aarch64-macos` compiles its test binary, MuPDF and both kinds in, without running it)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/macos.zig')
-rw-r--r--src/macos.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macos.zig b/src/macos.zig
index 7b996ca3..9a734bcc 100644
--- a/src/macos.zig
+++ b/src/macos.zig
@@ -512,6 +512,8 @@ fn initCore(runtime: ?*const Runtime, cols_arg: u16, rows_arg: u16) !void {
pardes.TerminalImages.start(io, allocs.image);
pardes.Kind.heap = allocs.addon;
+ // Its addons are compiled in (no loader runs here): image and PDF panes.
+ opts.addons = pardes.Addon.scan();
errdefer pardes.TerminalImages.stop();
pardes.syntax.start(allocs.tree_sitter);
errdefer pardes.syntax.stop();