2024-12-03 09:29:46 +00:00
|
|
|
Description: Add platform triplets for LoongArch.
|
|
|
|
|
|
2025-06-09 17:26:24 +00:00
|
|
|
---
|
|
|
|
|
configure.ac | 14 ++++++++++++++
|
|
|
|
|
1 file changed, 14 insertions(+)
|
|
|
|
|
|
2024-12-03 09:29:46 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
|
+++ b/configure.ac
|
|
|
|
|
@@ -976,6 +976,20 @@ cat > conftest.c <<EOF
|
|
|
|
|
hppa-linux-gnu
|
|
|
|
|
# elif defined(__ia64__)
|
|
|
|
|
ia64-linux-gnu
|
|
|
|
|
+# elif defined(__loongarch__)
|
|
|
|
|
+# if defined(__loongarch_lp64)
|
|
|
|
|
+# if defined(__loongarch_soft_float)
|
|
|
|
|
+ loongarch64-linux-gnusf
|
|
|
|
|
+# elif defined(__loongarch_single_float)
|
|
|
|
|
+ loongarch64-linux-gnuf32
|
|
|
|
|
+# elif defined(__loongarch_double_float)
|
|
|
|
|
+ loongarch64-linux-gnu
|
|
|
|
|
+# else
|
|
|
|
|
+# error unknown platform triplet
|
|
|
|
|
+# endif
|
|
|
|
|
+# else
|
|
|
|
|
+# error unknown platform triplet
|
|
|
|
|
+# endif
|
|
|
|
|
# elif defined(__m68k__) && !defined(__mcoldfire__)
|
|
|
|
|
m68k-linux-gnu
|
|
|
|
|
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
|