authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-08 07:59:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-16 22:24:52+02:00
log879a39a700dda5bbd720b940d9a26f202098f7c2
tree3caf43734c49df971eac104d1554c4b249843dd7
parentc76a98f28a2623d0622b373f3b6d9aa23c3da54a
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Ignore case for all Darwin platforms in isLibCLibName().

Matches isLibCxxLibName() behavior.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Target.zig+1-1
...@@ -2869,7 +2869,7 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {...@@ -2869,7 +2869,7 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {
2869}2869}
28702870
2871pub fn isLibCLibName(target: std.Target, name: []const u8) bool {2871pub fn isLibCLibName(target: std.Target, name: []const u8) bool {
2872 const ignore_case = target.os.tag == .macos or target.os.tag == .windows;2872 const ignore_case = target.os.tag.isDarwin() or target.os.tag == .windows;
28732873
2874 if (eqlIgnoreCase(ignore_case, name, "c"))2874 if (eqlIgnoreCase(ignore_case, name, "c"))
2875 return true;2875 return true;