std.Target: Only consider libxnet to be a libc library name for musl.

glibc has never had this.
This commit is contained in:
Alex Rønne Petersen 2024-10-08 08:05:00 +02:00
parent 879a39a700
commit bdb00b393e
No known key found for this signature in database

View File

@ -2936,8 +2936,6 @@ pub fn isLibCLibName(target: std.Target, name: []const u8) bool {
return true;
if (eqlIgnoreCase(ignore_case, name, "util"))
return true;
if (eqlIgnoreCase(ignore_case, name, "xnet"))
return true;
if (eqlIgnoreCase(ignore_case, name, "resolv"))
return true;
if (eqlIgnoreCase(ignore_case, name, "dl"))
@ -2947,6 +2945,8 @@ pub fn isLibCLibName(target: std.Target, name: []const u8) bool {
if (target.abi.isMusl()) {
if (eqlIgnoreCase(ignore_case, name, "crypt"))
return true;
if (eqlIgnoreCase(ignore_case, name, "xnet"))
return true;
}
if (target.os.tag.isDarwin()) {