mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
fix: add support for apple SDK paths in Darwin builds
This commit is contained in:
committed by
Mitchell Hashimoto
parent
d98334a94a
commit
44b7d34652
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user