| ... | @@ -500,8 +500,12 @@ pub const CrossTarget = struct { | ... | @@ -500,8 +500,12 @@ pub const CrossTarget = struct { |
| 500 | self.dynamic_linker.get() == null and self.glibc_version == null; | 500 | self.dynamic_linker.get() == null and self.glibc_version == null; |
| 501 | } | 501 | } |
| 502 | | 502 | |
| | 503 | pub fn isNativeAbi(self: CrossTarget) bool { |
| | 504 | return self.os_tag == null and self.abi == null; |
| | 505 | } |
| | 506 | |
| 503 | pub fn isNative(self: CrossTarget) bool { | 507 | pub fn isNative(self: CrossTarget) bool { |
| 504 | return self.isNativeCpu() and self.isNativeOs() and self.abi == null; | 508 | return self.isNativeCpu() and self.isNativeOs() and self.isNativeAbi(); |
| 505 | } | 509 | } |
| 506 | | 510 | |
| 507 | pub fn zigTriple(self: CrossTarget, allocator: *mem.Allocator) error{OutOfMemory}![]u8 { | 511 | pub fn zigTriple(self: CrossTarget, allocator: *mem.Allocator) error{OutOfMemory}![]u8 { |