std.Target: fix Abi.default() for some architectures on linux
1 files changed, 5 insertions(+), 3 deletions(-)
lib/std/Target.zig+5-3
| ... | ... | @@ -875,6 +875,8 @@ pub const Abi = enum { |
| 875 | 875 | .armeb, |
| 876 | 876 | .powerpc, |
| 877 | 877 | .powerpcle, |
| 878 | .sh, |
| 879 | .sheb, |
| 878 | 880 | .thumb, |
| 879 | 881 | .thumbeb, |
| 880 | 882 | => .musleabihf, |
| ... | ... | @@ -889,21 +891,21 @@ pub const Abi = enum { |
| 889 | 891 | .alpha, |
| 890 | 892 | .arc, |
| 891 | 893 | .arceb, |
| 892 | | .or1k, |
| 894 | .loongarch32, |
| 893 | 895 | .sparc, |
| 894 | 896 | .sparc64, |
| 895 | 897 | => .gnu, |
| 896 | 898 | .csky, |
| 897 | 899 | => .gnueabi, |
| 898 | 900 | .hppa, |
| 899 | | .sh, |
| 900 | | .sheb, |
| 901 | 901 | => .gnueabihf, |
| 902 | 902 | |
| 903 | 903 | // No glibc or musl support. |
| 904 | 904 | .xtensa, |
| 905 | 905 | .xtensaeb, |
| 906 | 906 | => .none, |
| 907 | .hppa64, |
| 908 | => .eabihf, |
| 907 | 909 | |
| 908 | 910 | else => .musl, |
| 909 | 911 | }, |