]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108447: Detect platform triplets for x86_64 GNU/Hurd (#108045)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 24 Aug 2023 20:37:20 +0000 (22:37 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2023 20:37:20 +0000 (22:37 +0200)
Misc/NEWS.d/next/Build/2023-08-24-18-36-31.gh-issue-108447.Ofsygr.rst [new file with mode: 0644]
Misc/platform_triplet.c

diff --git a/Misc/NEWS.d/next/Build/2023-08-24-18-36-31.gh-issue-108447.Ofsygr.rst b/Misc/NEWS.d/next/Build/2023-08-24-18-36-31.gh-issue-108447.Ofsygr.rst
new file mode 100644 (file)
index 0000000..a695ef5
--- /dev/null
@@ -0,0 +1 @@
+Fix x86_64 GNU/Hurd build
index c5e64b93553a7c17ada22a90aac0f27530f87dd9..3307260544e8a6da09186fc57253475222cef43e 100644 (file)
@@ -225,7 +225,13 @@ PLATFORM_TRIPLET=i386-kfreebsd-gnu
 #   error unknown platform triplet
 # endif
 #elif defined(__gnu_hurd__)
+# if defined(__x86_64__) && defined(__LP64__)
+PLATFORM_TRIPLET=x86_64-gnu
+# elif defined(__i386__)
 PLATFORM_TRIPLET=i386-gnu
+# else
+#   error unknown platform triplet
+# endif
 #elif defined(__APPLE__)
 PLATFORM_TRIPLET=darwin
 #elif defined(__VXWORKS__)