mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 19:09:32 +00:00
std.Target: Only consider libxnet to be a libc library name for musl.
glibc has never had this.
This commit is contained in:
parent
879a39a700
commit
bdb00b393e
@ -2936,8 +2936,6 @@ pub fn isLibCLibName(target: std.Target, name: []const u8) bool {
|
|||||||
return true;
|
return true;
|
||||||
if (eqlIgnoreCase(ignore_case, name, "util"))
|
if (eqlIgnoreCase(ignore_case, name, "util"))
|
||||||
return true;
|
return true;
|
||||||
if (eqlIgnoreCase(ignore_case, name, "xnet"))
|
|
||||||
return true;
|
|
||||||
if (eqlIgnoreCase(ignore_case, name, "resolv"))
|
if (eqlIgnoreCase(ignore_case, name, "resolv"))
|
||||||
return true;
|
return true;
|
||||||
if (eqlIgnoreCase(ignore_case, name, "dl"))
|
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 (target.abi.isMusl()) {
|
||||||
if (eqlIgnoreCase(ignore_case, name, "crypt"))
|
if (eqlIgnoreCase(ignore_case, name, "crypt"))
|
||||||
return true;
|
return true;
|
||||||
|
if (eqlIgnoreCase(ignore_case, name, "xnet"))
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.os.tag.isDarwin()) {
|
if (target.os.tag.isDarwin()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user