This commit is contained in:
Mitchell Hashimoto
2026-04-24 13:22:47 -07:00
parent 44a2d8740a
commit 33fc2aac97
2 changed files with 6 additions and 5 deletions

View File

@@ -155,7 +155,11 @@ pub fn build(b: *std.Build) !void {
// libghostty-vt xcframework (Apple only, universal binary).
// Only when building on macOS (not cross-compiling) since
// xcodebuild is required.
if (config.emit_lib_vt and config.emit_xcframework and builtin.os.tag.isDarwin() and config.target.result.os.tag.isDarwin()) {
if (config.emit_lib_vt and
config.emit_xcframework and
builtin.os.tag.isDarwin() and
config.target.result.os.tag.isDarwin())
{
const apple_libs = try buildpkg.GhosttyLibVt.initStaticAppleUniversal(
b,
&config,

View File

@@ -8,10 +8,7 @@ let package = Package(
.executableTarget(
name: "swift-vt-xcframework",
dependencies: ["GhosttyVt"],
path: "Sources",
linkerSettings: [
.linkedLibrary("c++"),
]
path: "Sources"
),
.binaryTarget(
name: "GhosttyVt",