Skip to content

Commit 6bc123a

Browse files
committed
* Add loongarch support. Closes: #1049963.
1 parent a9d83d6 commit 6bc123a

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

debian/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
python3.11 (3.11.5-2) unstable; urgency=medium
22

33
* libpython3.11-stdlib: Also depend on tzdata-legacy. Closes: #1050530.
4+
* Add loongarch support. Closes: #1049963.
45

56
-- Matthias Klose <[email protected]> Sat, 26 Aug 2023 20:28:17 +0200
67

debian/multiarch.h.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
# include <hppa-linux-gnu/@subdir@/@header@>
2020
# elif defined(__ia64__)
2121
# include <ia64-linux-gnu/@subdir@/@header@>
22+
# elif defined(__loongarch__)
23+
# if defined(__loongarch_soft_float)
24+
# include <loongarch64-linux-gnusf/@subdir@/@header@>
25+
# elif defined(__loongarch_single_float)
26+
# include <loongarch64-linux-gnuf32/@subdir@/@header@>
27+
# elif defined(__loongarch_double_float)
28+
# include <loongarch64-linux-gnu/@subdir@/@header@>
29+
# else
30+
# error unknown multiarch location for @header@
31+
# endif
2232
# elif defined(__m68k__) && !defined(__mcoldfire__)
2333
# include <m68k-linux-gnu/@subdir@/@header@>
2434
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Description: Add platform triplets for LoongArch.
2+
3+
--- a/configure.ac
4+
+++ b/configure.ac
5+
@@ -968,6 +968,20 @@ cat > conftest.c <<EOF
6+
hppa-linux-gnu
7+
# elif defined(__ia64__)
8+
ia64-linux-gnu
9+
+# elif defined(__loongarch__)
10+
+# if defined(__loongarch_lp64)
11+
+# if defined(__loongarch_soft_float)
12+
+ loongarch64-linux-gnusf
13+
+# elif defined(__loongarch_single_float)
14+
+ loongarch64-linux-gnuf32
15+
+# elif defined(__loongarch_double_float)
16+
+ loongarch64-linux-gnu
17+
+# else
18+
+# error unknown platform triplet
19+
+# endif
20+
+# else
21+
+# error unknown platform triplet
22+
+# endif
23+
# elif defined(__m68k__) && !defined(__mcoldfire__)
24+
m68k-linux-gnu
25+
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ sphinx3.diff
3838
destshared-location.diff
3939
fix-py_compile.diff
4040
ntpath-import.diff
41+
add-loongarch-support.diff

0 commit comments

Comments
 (0)