build(highway): require apple_sdk for darwin builds (#12725)

Noticed this was removed in another PR, but `apple_sdk` is required to
build libghsotty for the iOS simulator, specifically for the x86 version
(see the error log
[here](https://github.com/elias8/libghostty/actions/runs/26075576793/job/76666498246)).
Figured it'd be better to include the SDK in all darwin builds for
consistency.
This commit is contained in:
Mitchell Hashimoto
2026-05-20 06:07:07 -07:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,13 @@ pub fn build(b: *std.Build) !void {
try android_ndk.addPaths(b, lib);
}
// Mainly for iOS simulators, but we add for all Darwin target for
// consistency.
if (target.result.os.tag.isDarwin()) {
const apple_sdk = @import("apple_sdk");
try apple_sdk.addPaths(b, lib);
}
var flags: std.ArrayList([]const u8) = .empty;
defer flags.deinit(b.allocator);
try flags.appendSlice(b.allocator, &.{

View File

@@ -12,5 +12,6 @@
},
.android_ndk = .{ .path = "../android-ndk" },
.apple_sdk = .{ .path = "../apple-sdk" },
},
}