From d24030db5805ed482257061034608ab98e283272 Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Wed, 18 Feb 2026 20:21:34 -0800 Subject: [PATCH] Use universal xcframework target instead of native (#86) The self-hosted runner (M4 Mac Mini) was building GhosttyKit with -Dxcframework-target=native, producing M4-tuned binaries. This caused menubar and right-click lag on M1 machines. Dropping the flag defaults to universal, which works well across all Apple Silicon chips. --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1b54c14..fa59e76f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: exit 1 fi fi - (cd ghostty && zig build -Demit-xcframework=true -Demit-macos-app=false -Dxcframework-target=native) + (cd ghostty && zig build -Demit-xcframework=true -Demit-macos-app=false) rm -rf GhosttyKit.xcframework cp -R ghostty/macos/GhosttyKit.xcframework GhosttyKit.xcframework test -d GhosttyKit.xcframework diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b7a6ef9..6dc0b3bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: - name: Build GhosttyKit.xcframework run: | cd ghostty - zig build -Demit-xcframework=true -Demit-macos-app=false -Dxcframework-target=native -Doptimize=ReleaseFast + zig build -Demit-xcframework=true -Demit-macos-app=false -Doptimize=ReleaseFast cd .. rm -rf GhosttyKit.xcframework cp -R ghostty/macos/GhosttyKit.xcframework GhosttyKit.xcframework