diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2024-01-13 20:21:49 -0800 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2024-01-13 21:38:58 -0800 |
| commit | 3360a008cd137b428631fc8052f64d672a660240 (patch) | |
| tree | fde2c11d89fddbc0cc7e40d97b3de02a7c94158e /src/Command.zig | |
| parent | 7a4c63522bae3a078bd8467eb150819c2e55f404 (diff) | |
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).
Diffstat (limited to 'src/Command.zig')
| -rw-r--r-- | src/Command.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Command.zig b/src/Command.zig index 4a15d1229..af3979b3e 100644 --- a/src/Command.zig +++ b/src/Command.zig @@ -290,7 +290,7 @@ fn setupFd(src: File.Handle, target: i32) !void { } } }, - .macos => { + .ios, .macos => { // Mac doesn't support dup3 so we use dup2. We purposely clear // CLO_ON_EXEC for this fd. const flags = try os.fcntl(src, os.F.GETFD, 0); |
