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