| author | |
| committer | |
| log | 5e08d00862fb10c72cd011bf29112e12ef38d576 |
| tree | 07d126fb52f97f3f3c93f3105d9e180efc9ec411 |
| parent | 624fa8523a2c4158ddc9fce231181a9e8583a633 |
| signature |
1 files changed, 7 insertions(+), 0 deletions(-)
lib/std/Target.zig+7| ... | ... | @@ -1084,6 +1084,13 @@ pub const Cpu = struct { |
| 1084 | 1084 | }; |
| 1085 | 1085 | } |
| 1086 | 1086 | |
| 1087 | pub inline fn isLoongArch(arch: Arch) bool { | |
| 1088 | return switch (arch) { | |
| 1089 | .loongarch32, .loongarch64 => true, | |
| 1090 | else => false, | |
| 1091 | }; | |
| 1092 | } | |
| 1093 | ||
| 1087 | 1094 | pub inline fn isRISCV(arch: Arch) bool { |
| 1088 | 1095 | return switch (arch) { |
| 1089 | 1096 | .riscv32, .riscv64 => true, |