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.
This commit is contained in:
parent
ab89fab897
commit
699db2a9ed
2 changed files with 2 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue