From 44b7d34652fc7b868d998a2f80c0e92f607bc72a Mon Sep 17 00:00:00 2001 From: Elias Andualem Date: Tue, 17 Feb 2026 02:48:49 +0800 Subject: [PATCH] fix: add support for apple SDK paths in Darwin builds --- src/build/GhosttyLibVt.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/build/GhosttyLibVt.zig b/src/build/GhosttyLibVt.zig index aae8ace19..154a55740 100644 --- a/src/build/GhosttyLibVt.zig +++ b/src/build/GhosttyLibVt.zig @@ -61,6 +61,12 @@ pub fn initShared( .{ .include_extensions = &.{".h"} }, ); + // We always require the system SDK so that our system headers are available. + // This makes things like `os/log.h` and iOS SDK available for cross-compiling. + if (lib.rootModuleTarget().os.tag.isDarwin()) { + try @import("apple_sdk").addPaths(b, lib); + } + // Get our debug symbols const dsymutil: ?std.Build.LazyPath = dsymutil: { if (!target.result.os.tag.isDarwin()) {