Skip to content

Commit 3633dd8

Browse files
committed
std.zig.target: libmx is a libSystem library for maccatalyst too
1 parent 2125c94 commit 3633dd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/std/zig/target.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,11 @@ pub fn isLibCLibName(target: *const std.Target, name: []const u8) bool {
393393
return true;
394394
if (eqlIgnoreCase(ignore_case, name, "rpcsvc"))
395395
return true;
396-
}
397396

398-
if (target.os.isAtLeast(.macos, .{ .major = 10, .minor = 8, .patch = 0 }) orelse false) {
399-
if (eqlIgnoreCase(ignore_case, name, "mx"))
400-
return true;
397+
if (target.os.tag == .maccatalyst or target.os.tag == .macos) {
398+
if (eqlIgnoreCase(ignore_case, name, "mx"))
399+
return true;
400+
}
401401
}
402402

403403
if (target.isFreeBSDLibC()) {

0 commit comments

Comments
 (0)