Files
dev/third_party/pi/packages/tui/native/darwin
alexion 6081e3e325 chore(vendor): import pi 1.3.0
Imported as a linear vendor commit so forge rebases do not replay the upstream root tree.

git-subtree-dir: third_party/pi

git-subtree-split: 71023aec1546d6d677a65669c5665c0927ce0dd0
2026-10-15 17:58:48 -04:00
..
2026-10-15 17:58:48 -04:00
2026-10-15 17:58:48 -04:00
2026-10-15 17:58:48 -04:00
2026-10-15 17:58:48 -04:00

Darwin native prebuilds

Provides modifier-key state and asynchronous text, image, and file-path clipboard access using AppKit.

Building

On macOS, run from the repository root:

npm --prefix packages/tui run build:native:darwin

The build uses Apple clang and the macOS SDK found through xcrun. Either Intel or Apple Silicon can build both targets: arm64 (macOS 11+) and x64 (macOS 10.15+).

Cross-building requires a Darwin toolchain with a macOS SDK and Mach-O linker, such as osxcross:

CC=/path/to/osxcross/clang SDKROOT=/path/to/MacOSX.sdk \
  npm --prefix packages/tui run build:native:darwin

The SDK must be obtained and used under Apple's license. Plain clang or Zig alone is not sufficient.