| ... | ... | @@ -825,13 +825,13 @@ pub const Abi = enum { |
| 825 | 825 | // Soft float is usually a sane default for freestanding. |
| 826 | 826 | .arm, |
| 827 | 827 | .armeb, |
| 828 | | .thumb, |
| 829 | | .thumbeb, |
| 830 | 828 | .csky, |
| 831 | 829 | .mips, |
| 832 | 830 | .mipsel, |
| 833 | 831 | .powerpc, |
| 834 | 832 | .powerpcle, |
| 833 | .thumb, |
| 834 | .thumbeb, |
| 835 | 835 | => .eabi, |
| 836 | 836 | else => .none, |
| 837 | 837 | }, |
| ... | ... | @@ -846,20 +846,28 @@ pub const Abi = enum { |
| 846 | 846 | .linux => switch (arch) { |
| 847 | 847 | .arm, |
| 848 | 848 | .armeb, |
| 849 | | .thumb, |
| 850 | | .thumbeb, |
| 851 | 849 | .powerpc, |
| 852 | 850 | .powerpcle, |
| 851 | .thumb, |
| 852 | .thumbeb, |
| 853 | 853 | => .musleabihf, |
| 854 | | // Soft float tends to be more common for CSKY and MIPS. |
| 855 | | .csky, |
| 856 | | => .gnueabi, // No musl support. |
| 857 | 854 | .mips, |
| 858 | 855 | .mipsel, |
| 859 | 856 | => .musleabi, |
| 860 | 857 | .mips64, |
| 861 | 858 | .mips64el, |
| 862 | 859 | => .muslabi64, |
| 860 | |
| 861 | // No musl support. |
| 862 | .arc, |
| 863 | => .gnu, |
| 864 | .csky, |
| 865 | => .gnueabi, |
| 866 | |
| 867 | // No glibc or musl support. |
| 868 | .xtensa, |
| 869 | => .none, |
| 870 | |
| 863 | 871 | else => .musl, |
| 864 | 872 | }, |
| 865 | 873 | .rtems => switch (arch) { |