commit ace26004a3a3cd6ac41e10e7e1fca2922952bf4b (tree)
parent af48ce63795ca030a5eebd163af68746b8de2f0a
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 30 Oct 2024 07:16:09 +0100
std.Target: Remove arch-specific handling for macos in Os.VersionRange.default().
The minimum is now the same for both aarch64 and x86_64.
Diffstat:
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -494,20 +494,11 @@ pub const Os = struct {
.max = .{ .major = 24, .minor = 0, .patch = 0 },
},
},
- .macos => switch (arch) {
- .aarch64 => .{
- .semver = .{
- .min = .{ .major = 11, .minor = 7, .patch = 1 },
- .max = .{ .major = 14, .minor = 6, .patch = 1 },
- },
- },
- .x86_64 => .{
- .semver = .{
- .min = .{ .major = 11, .minor = 7, .patch = 1 },
- .max = .{ .major = 14, .minor = 6, .patch = 1 },
- },
+ .macos => .{
+ .semver = .{
+ .min = .{ .major = 11, .minor = 7, .patch = 1 },
+ .max = .{ .major = 14, .minor = 6, .patch = 1 },
},
- else => unreachable,
},
.ios => .{
.semver = .{