| ... | ... | @@ -2023,6 +2023,14 @@ pub fn zigTriple(target: Target, allocator: Allocator) Allocator.Error![]u8 { |
| 2023 | 2023 | return Query.fromTarget(target).zigTriple(allocator); |
| 2024 | 2024 | } |
| 2025 | 2025 | |
| 2026 | pub fn hurdTupleSimple(allocator: Allocator, arch: Cpu.Arch, abi: Abi) ![]u8 { |
| 2027 | return std.fmt.allocPrint(allocator, "{s}-{s}", .{ @tagName(arch), @tagName(abi) }); |
| 2028 | } |
| 2029 | |
| 2030 | pub fn hurdTuple(target: Target, allocator: Allocator) ![]u8 { |
| 2031 | return hurdTupleSimple(allocator, target.cpu.arch, target.abi); |
| 2032 | } |
| 2033 | |
| 2026 | 2034 | pub fn linuxTripleSimple(allocator: Allocator, arch: Cpu.Arch, os_tag: Os.Tag, abi: Abi) ![]u8 { |
| 2027 | 2035 | return std.fmt.allocPrint(allocator, "{s}-{s}-{s}", .{ @tagName(arch), @tagName(os_tag), @tagName(abi) }); |
| 2028 | 2036 | } |