mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
std.CrossTarget: add isNativeAbi()
This commit is contained in:
parent
307d98dc35
commit
078a64f8d9
@ -500,8 +500,12 @@ pub const CrossTarget = struct {
|
||||
self.dynamic_linker.get() == null and self.glibc_version == null;
|
||||
}
|
||||
|
||||
pub fn isNativeAbi(self: CrossTarget) bool {
|
||||
return self.os_tag == null and self.abi == null;
|
||||
}
|
||||
|
||||
pub fn isNative(self: CrossTarget) bool {
|
||||
return self.isNativeCpu() and self.isNativeOs() and self.abi == null;
|
||||
return self.isNativeCpu() and self.isNativeOs() and self.isNativeAbi();
|
||||
}
|
||||
|
||||
pub fn zigTriple(self: CrossTarget, allocator: *mem.Allocator) error{OutOfMemory}![]u8 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user