libffi: set target triplet to aarch64-apple-darwin on Mac M1. (#23750)
This commit is contained in:
parent
6b1849b663
commit
f8c2e1fc97
@ -32,4 +32,9 @@ def configure_args(self):
|
||||
# Spack adds its own target flags, so tell libffi not to
|
||||
# second-guess us
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user