gh-108447: Detect platform triplets for x86_64 GNU/Hurd (#108045)
https://github.com/python/cpython/commit/edb569e8e1f469ac5ce629cc647ab169d89... commit: edb569e8e1f469ac5ce629cc647ab169d895de41 branch: main author: Samuel Thibault <samuel.thibault@ens-lyon.org> committer: erlend-aasland <erlend.aasland@protonmail.com> date: 2023-08-24T22:37:20+02:00 summary: gh-108447: Detect platform triplets for x86_64 GNU/Hurd (#108045) files: A Misc/NEWS.d/next/Build/2023-08-24-18-36-31.gh-issue-108447.Ofsygr.rst M 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 index 0000000000000..a695ef503e406 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2023-08-24-18-36-31.gh-issue-108447.Ofsygr.rst @@ -0,0 +1 @@ +Fix x86_64 GNU/Hurd build diff --git a/Misc/platform_triplet.c b/Misc/platform_triplet.c index c5e64b93553a7..3307260544e8a 100644 --- a/Misc/platform_triplet.c +++ b/Misc/platform_triplet.c @@ -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__)
participants (1)
-
erlend-aasland