mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.Target: Add isFreeBSDLibC() function.
This commit is contained in:
parent
46042170cb
commit
309ff9c34e
@ -2068,6 +2068,13 @@ pub inline fn isDarwinLibC(target: Target) bool {
|
||||
};
|
||||
}
|
||||
|
||||
pub inline fn isFreeBSDLibC(target: Target) bool {
|
||||
return switch (target.abi) {
|
||||
.none, .eabihf => target.os.tag == .freebsd,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
||||
pub inline fn isWasiLibC(target: Target) bool {
|
||||
return target.os.tag == .wasi and target.abi.isMusl();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user