fix: add support for apple SDK paths in Darwin builds

This commit is contained in:
Elias Andualem
2026-02-17 02:48:49 +08:00
committed by Mitchell Hashimoto
parent d98334a94a
commit 44b7d34652

View File

@@ -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()) {