Skip to content

Commit 03029ac

Browse files
loongson-znxen0n
andauthored
gh-90656: Add platform triplets for 64-bit LoongArch (LA64) (#30939)
Signed-off-by: Zhang Na <zhangna@loongson.cn> Co-authored-by: WANG Xuerui <git@xen0n.name>
1 parent 9a9b176 commit 03029ac

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,14 @@ Build Changes
11691169
optimization levels (0, 1, 2) at once.
11701170
(Contributed by Victor Stinner in :gh:`99289`.)
11711171

1172+
* Add platform triplets for 64-bit LoongArch:
1173+
1174+
* loongarch64-linux-gnusf
1175+
* loongarch64-linux-gnuf32
1176+
* loongarch64-linux-gnu
1177+
1178+
(Contributed by Zhang Na in :gh:`90656`.)
1179+
11721180

11731181
C API Changes
11741182
=============
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Add platform triplets for 64-bit LoongArch:
2+
3+
* loongarch64-linux-gnusf
4+
* loongarch64-linux-gnuf32
5+
* loongarch64-linux-gnu
6+
7+
Patch by Zhang Na.

configure

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,20 @@ cat > conftest.c <<EOF
959959
hppa-linux-gnu
960960
# elif defined(__ia64__)
961961
ia64-linux-gnu
962+
# elif defined(__loongarch__)
963+
# if defined(__loongarch_lp64)
964+
# if defined(__loongarch_soft_float)
965+
loongarch64-linux-gnusf
966+
# elif defined(__loongarch_single_float)
967+
loongarch64-linux-gnuf32
968+
# elif defined(__loongarch_double_float)
969+
loongarch64-linux-gnu
970+
# else
971+
# error unknown platform triplet
972+
# endif
973+
# else
974+
# error unknown platform triplet
975+
# endif
962976
# elif defined(__m68k__) && !defined(__mcoldfire__)
963977
m68k-linux-gnu
964978
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy