gh-108447: Detect platform triplets for x86_64 GNU/Hurd (#108045)

This commit is contained in:
Samuel Thibault 2023-08-24 22:37:20 +02:00 committed by GitHub
parent a071ecb4d1
commit edb569e8e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
Fix x86_64 GNU/Hurd build

View 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__)