diff options
author | Matthias Klose <doko42@users.noreply.github.com> | 2018-04-30 17:22:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 17:22:16 (GMT) |
commit | ddbe976964933cb943c6383a776e800cc7e0f47d (patch) | |
tree | bfc74a5afe8f5396a1f4591771a68020b7399843 /configure.ac | |
parent | c3b7a6dfb9c7e69093c9fe78ab587e14743e5152 (diff) | |
download | cpython-ddbe976964933cb943c6383a776e800cc7e0f47d.zip cpython-ddbe976964933cb943c6383a776e800cc7e0f47d.tar.gz cpython-ddbe976964933cb943c6383a776e800cc7e0f47d.tar.bz2 |
bpo-33377: add triplets for mips-r6 and riscv (#6655)
* issue33377: add triplets for mips-r6 and riscv
* issue33377: add triplets for mips-r6 and riscv (NEWS entry)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b83abee..419bc34 100644 --- a/configure.ac +++ b/configure.ac @@ -781,6 +781,26 @@ cat >> conftest.c <<EOF ia64-linux-gnu # elif defined(__m68k__) && !defined(__mcoldfire__) m68k-linux-gnu +# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) +# if _MIPS_SIM == _ABIO32 + mipsisa32r6el-linux-gnu +# elif _MIPS_SIM == _ABIN32 + mipsisa64r6el-linux-gnuabin32 +# elif _MIPS_SIM == _ABI64 + mipsisa64r6el-linux-gnuabi64 +# else +# error unknown platform triplet +# endif +# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) +# if _MIPS_SIM == _ABIO32 + mipsisa32r6-linux-gnu +# elif _MIPS_SIM == _ABIN32 + mipsisa64r6-linux-gnuabin32 +# elif _MIPS_SIM == _ABI64 + mipsisa64r6-linux-gnuabi64 +# else +# error unknown platform triplet +# endif # elif defined(__mips_hard_float) && defined(_MIPSEL) # if _MIPS_SIM == _ABIO32 mipsel-linux-gnu @@ -823,6 +843,14 @@ cat >> conftest.c <<EOF sparc64-linux-gnu # elif defined(__sparc__) sparc-linux-gnu +# elif defined(__riscv) +# if __riscv_xlen == 32 + riscv32-linux-gnu +# elif __riscv_xlen == 64 + riscv64-linux-gnu +# else +# error unknown platform triplet +# endif # else # error unknown platform triplet # endif |