build(highway): require apple_sdk for darwin builds

This commit is contained in:
Elias Andualem
2026-05-18 13:44:34 +08:00
parent 4b7bf0b20e
commit 7c2b29a9f3
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" },
},
}