forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using patch ref on: python/cpython#90656 to add loongarch triplets for using cpython in loongarch Note: This patch is being reviewed by cpython
- Loading branch information
1 parent
4683562
commit df2c2e6
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
pkgs/development/interpreters/python/cpython/loongarch-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
diff --git a/configure b/configure | ||
index 8133d47f61..334c98e208 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -6215,6 +6215,20 @@ cat > conftest.c <<EOF | ||
# else | ||
# error unknown platform triplet | ||
# endif | ||
+# 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 | ||
# else | ||
# error unknown platform triplet | ||
# endif | ||
diff --git a/configure.ac b/configure.ac | ||
index 3f20d8980d..acde94a181 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -959,6 +959,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) |