mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
build: skip xcframework when cross-compiling
Gate the xcframework build on the host being macOS in addition to the target, since xcodebuild is only available on macOS.
This commit is contained in:
@@ -152,8 +152,10 @@ pub fn build(b: *std.Build) !void {
|
||||
).step);
|
||||
}
|
||||
|
||||
// libghostty-vt xcframework (Apple only, universal binary)
|
||||
if (config.target.result.os.tag.isDarwin()) {
|
||||
// libghostty-vt xcframework (Apple only, universal binary).
|
||||
// Only when building on macOS (not cross-compiling) since
|
||||
// xcodebuild is required.
|
||||
if (builtin.os.tag.isDarwin() and config.target.result.os.tag.isDarwin()) {
|
||||
const universal = try buildpkg.GhosttyLibVt.initStaticAppleUniversal(
|
||||
b,
|
||||
&config,
|
||||
|
||||
Reference in New Issue
Block a user