From 699db2a9edd8d877bf0e75d6eb28d42c8d6e75ba Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:09:13 -0800 Subject: [PATCH] Fix menubar lag on M1 Macs by using universal xcframework target (#93) Remove -Dxcframework-target=native from CI and release workflows, defaulting to universal (matching upstream ghostty). The native target produces a macos-arm64 xcframework slice that causes Xcode to link the final binary differently (~70KB more __text), resulting in menubar and right-click lag on M1 Max. The arm64 static libraries are byte-for-byte identical between native and universal builds - the difference is purely in how Xcode resolves the xcframework slice. --- .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 78c04c03..943b789d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,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 381e955b..4cbcb8dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,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