gpu-dawn: fix building for macOS 11 targets (fixes hexops/mach#610)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-25 00:29:11 -07:00
parent c62bae6edc
commit a02be34c07

View file

@ -222,7 +222,7 @@ pub fn Sdk(comptime deps: anytype) type {
// If min. target macOS version is lesser than the min version we have available, then
// our binary is incompatible with the target.
const min_available = std.SemanticVersion{ .major = 12, .minor = 0, .patch = std.math.maxInt(u32) };
const min_available = std.SemanticVersion{ .major = 11, .minor = 0, .patch = std.math.maxInt(u32) };
if (target.os.version_range.semver.min.order(min_available) == .lt) break :blk false;
break :blk true;
},