Commit 3633dd8d41

Alex Rønne Petersen <alex@alexrp.com>
2025-11-14 22:14:09
std.zig.target: libmx is a libSystem library for maccatalyst too
1 parent 2125c94
Changed files (1)
lib
std
lib/std/zig/target.zig
@@ -393,11 +393,11 @@ pub fn isLibCLibName(target: *const std.Target, name: []const u8) bool {
             return true;
         if (eqlIgnoreCase(ignore_case, name, "rpcsvc"))
             return true;
-    }
 
-    if (target.os.isAtLeast(.macos, .{ .major = 10, .minor = 8, .patch = 0 }) orelse false) {
-        if (eqlIgnoreCase(ignore_case, name, "mx"))
-            return true;
+        if (target.os.tag == .maccatalyst or target.os.tag == .macos) {
+            if (eqlIgnoreCase(ignore_case, name, "mx"))
+                return true;
+        }
     }
 
     if (target.isFreeBSDLibC()) {