mirror-ghostty/pkg/macos
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
..
animation pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
carbon pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
dispatch pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
foundation core: fixup callconv(.C) -> callconv(.c) 2025-05-07 08:41:09 -05:00
graphics pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
os pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
text pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
video core: fixup callconv(.C) -> callconv(.c) 2025-05-07 08:41:09 -05:00
animation.zig pkg/macos: animation yeet usingns 2024-08-16 16:35:07 -07:00
build.zig build: use a libc txt file to point to correct Apple SDK 2025-05-29 15:04:05 -07:00
build.zig.zon pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
carbon.zig pkg/macos: expose carbon API 2024-09-19 09:22:07 -07:00
dispatch.zig pkg/macos: graphics usingns yeet 2024-08-16 16:38:04 -07:00
foundation.zig pkg/macos: foundation yeet usingns 2024-08-16 16:33:47 -07:00
graphics.zig pkg/macos: graphics usingns yeet 2024-08-16 16:38:04 -07:00
main.zig pkg/macos: clean up for Zig 0.14, consolidate C imports into one decl 2025-03-15 07:02:53 -07:00
os.zig pkg/macos: more 2024-08-16 16:39:33 -07:00
text.zig font(coretext): add metrics test case for CT, fix variable font init 2024-12-11 21:14:21 -05:00
video.zig pkg/macos: more 2024-08-16 16:39:33 -07:00