build(highway): require `apple_sdk` for darwin builds
parent
4b7bf0b20e
commit
7c2b29a9f3
|
|
@ -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, &.{
|
||||
|
|
|
|||
|
|
@ -12,5 +12,6 @@
|
|||
},
|
||||
|
||||
.android_ndk = .{ .path = "../android-ndk" },
|
||||
.apple_sdk = .{ .path = "../apple-sdk" },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue