Commit ace26004a3

Alex Rønne Petersen <alex@alexrp.com>
2024-10-30 07:16:09
std.Target: Remove arch-specific handling for macos in Os.VersionRange.default().
The minimum is now the same for both aarch64 and x86_64.
1 parent af48ce6
Changed files (1)
lib
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 = .{