aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-24 10:01:33 +0200
committeruser <user@clank>2026-08-24 10:01:33 +0200
commitba99bb6d28d28331546dd039a1a50cd7d64accbf (patch)
tree96e7358ce5ab6a40386369e34addfffdee1e2112 /Makefile
parentvendor: an unanchored build/ ignore was eating libghostty-vt's build tooling (diff)
downloadslosh-ba99bb6d28d28331546dd039a1a50cd7d64accbf.tar.gz
slosh-ba99bb6d28d28331546dd039a1a50cd7d64accbf.tar.xz
slosh-ba99bb6d28d28331546dd039a1a50cd7d64accbf.zip
make vendor: no xcframework, a CLT-only xcodebuild is a stub
In lib-vt mode upstream's build.zig auto-enables an xcframework whenever xcodebuild is on PATH. On a Mac with only the Command Line Tools that xcodebuild fails, turning a working build into a broken one -- and we only ever consume libghostty-vt.a anyway. Pass -Demit-xcframework=false.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 781851c..2595414 100644
--- a/Makefile
+++ b/Makefile
@@ -101,8 +101,13 @@ build:
$(VT_LIB):
@$(MAKE) vendor
+# -Demit-xcframework=false: we only need libghostty-vt.a. In lib-vt mode the
+# upstream build.zig auto-enables an xcframework whenever `xcodebuild` is on
+# PATH -- but on a machine with only the Command Line Tools (no full Xcode)
+# that xcodebuild is a stub that fails, so the auto-detect turns a working
+# build into a broken one. We never consume the xcframework, so disable it.
vendor: ## build the vendored libghostty-vt (needs zig 0.16)
- cd $(VT) && PATH="$(dir $(ZIG)):$$PATH" zig build -Demit-lib-vt -Doptimize=ReleaseFast
+ cd $(VT) && PATH="$(dir $(ZIG)):$$PATH" zig build -Demit-lib-vt -Demit-xcframework=false -Doptimize=ReleaseFast
TEST_BIN := build/input_test