libffi: set target triplet to aarch64-apple-darwin on Mac M1. (#23750)

This commit is contained in:
Mansour Moufid 2021-05-21 13:17:58 -04:00 committed by GitHub
parent 6b1849b663
commit f8c2e1fc97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,4 +32,9 @@ def configure_args(self):
# Spack adds its own target flags, so tell libffi not to # Spack adds its own target flags, so tell libffi not to
# second-guess us # second-guess us
args.append('--without-gcc-arch') args.append('--without-gcc-arch')
# At the moment, build scripts accept 'aarch64-apple-darwin'
# but not 'arm64-apple-darwin'.
# See: https://github.com/libffi/libffi/issues/571
if self.spec.satisfies('platform=darwin target=aarch64:'):
args.append('--build=aarch64-apple-darwin')
return args return args