From 879a39a700dda5bbd720b940d9a26f202098f7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 8 Oct 2024 07:59:39 +0200 Subject: [PATCH] std.Target: Ignore case for all Darwin platforms in isLibCLibName(). Matches isLibCxxLibName() behavior. --- lib/std/Target.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 00f883d30e..0969b08466 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -2869,7 +2869,7 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 { } pub fn isLibCLibName(target: std.Target, name: []const u8) bool { - const ignore_case = target.os.tag == .macos or target.os.tag == .windows; + const ignore_case = target.os.tag.isDarwin() or target.os.tag == .windows; if (eqlIgnoreCase(ignore_case, name, "c")) return true;