Commit Graph

20 Commits (cca10f3ca8b701c9c34bbcd1fc918e0de3e004e9)

Author SHA1 Message Date
Mitchell Hashimoto cca10f3ca8
Revert GTK UI changes, apple-sdk build stuff 2025-12-10 20:20:37 -08:00
George Papadakis 625d7274bf Add close tabs on the right action 2025-12-10 20:14:27 -08:00
Mitchell Hashimoto d02770d292
zig-15: build binary builds 2025-10-03 07:10:41 -07:00
Mitchell Hashimoto 0f1860f066
build: use a libc txt file to point to correct Apple SDK
This fixes an issue where Ghostty would not build against the macOS 15.5 SDK.

What was happening was that Zig was adding its embedded libc paths to
the clang command line, which included old headers that were
incompatible with the latest (macOS 15.5) SDK. Ghostty was adding the
newer paths but they were being overridden by the embedded libc paths.

The reason this was happening is because Zig was using its own logic to
find the libc paths and this was colliding with the paths we were
setting manually. To fix this, we now use a `libc.txt` file that
explicitly tells Zig where to find libc, and we base this on our own SDK
search logic.
2025-05-29 15:04:05 -07:00
Mitchell Hashimoto 63ca2c0f0c
pkg/apple-sdk: more descriptive error when SDK not found 2024-02-14 08:56:11 -08:00
Mitchell Hashimoto 2f5f14df9f
pkg/apple-sdk: use std.zig.system.darwin.getSdk 2024-01-26 08:31:30 -08:00
Jakub Konka f98b5b7417 apple-sdk: use zig's libstd getSdk to get active Apple SDK 2024-01-26 12:04:49 +01:00
Mitchell Hashimoto 3360a008cd
build: build produces a broken object file for iOS
This gets `zig build -Dtarget=aarch64-ios` working. By "working" I mean
it produces an object file without compiler errors. However, the object
file certainly isn't useful since it uses a number of features that will
not work in the iOS sandbox.

This is just an experiment more than anything to see how hard it would be to
get libghostty working within iOS to render a terminal. Note iOS doesn't
support ptys so this wouldn't be a true on-device terminal. The
challenge right now is to just get a terminal rendering (not usable).
2024-01-13 21:38:58 -08:00
Mitchell Hashimoto 5bca3a4044
pkg/apple-sdk: only exec to get xcode path once per build 2024-01-10 09:35:37 -08:00
Mitchell Hashimoto 41de9c6e97
pkg/apple-sdk: depend on macOS 14 SDK 2024-01-10 09:32:24 -08:00
Mitchell Hashimoto 7e1f1d360f
pkg/apple-sdk add comment 2024-01-09 22:32:39 -08:00
Mitchell Hashimoto 22648d60e7
pkg/apple-sdk: detect apple sdk based on target 2024-01-09 22:24:34 -08:00
Mitchell Hashimoto 829776bebd
pkg/apple-sdk: always require a module 2024-01-09 22:11:03 -08:00
Mitchell Hashimoto c0722b3652
build: use Xcode for the macOS SDK 2024-01-09 21:53:01 -08:00
Krzysztof Wolicki 3c78df70fb Maybe this will help macos 2024-01-07 21:39:53 +01:00
Krzysztof Wolicki 1913243c35 WIP: Update to new build module API after Zig PR #18160
Temporarily change dependency sources to forks until they update
2024-01-03 21:50:32 +01:00
Mitchell Hashimoto 17032632cf
pkg/apple-sdk: do not git clone anymore 2023-10-07 15:31:17 -07:00
Mitchell Hashimoto d71197dc59
no more system_sdk 2023-10-01 17:38:30 -07:00
Mitchell Hashimoto 5d52a94792
pkg/apple-sdk: set sysroot 2023-10-01 16:39:19 -07:00
Mitchell Hashimoto b9cc763a3a
pkg/harfbuzz needs to use apple sdk for coretext 2023-10-01 15:33:40 -07:00