commit 879a39a700dda5bbd720b940d9a26f202098f7c2 (tree)
parent c76a98f28a2623d0622b373f3b6d9aa23c3da54a
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Tue, 8 Oct 2024 07:59:39 +0200
std.Target: Ignore case for all Darwin platforms in isLibCLibName().
Matches isLibCxxLibName() behavior.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;