diff options
author | Mansour Moufid <mansourmoufid@gmail.com> | 2021-05-21 13:17:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 19:17:58 +0200 |
commit | f8c2e1fc97a08b03460b4728fb531d331c856127 (patch) | |
tree | d673d84f1d1445010200881f2299e4bd71acae45 | |
parent | 6b1849b663657d3eceacbd37bd8f9116108a0830 (diff) | |
download | spack-f8c2e1fc97a08b03460b4728fb531d331c856127.tar.gz spack-f8c2e1fc97a08b03460b4728fb531d331c856127.tar.bz2 spack-f8c2e1fc97a08b03460b4728fb531d331c856127.tar.xz spack-f8c2e1fc97a08b03460b4728fb531d331c856127.zip |
libffi: set target triplet to aarch64-apple-darwin on Mac M1. (#23750)
-rw-r--r-- | var/spack/repos/builtin/packages/libffi/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libffi/package.py b/var/spack/repos/builtin/packages/libffi/package.py index e3374a70d7..ad6a0a8104 100644 --- a/var/spack/repos/builtin/packages/libffi/package.py +++ b/var/spack/repos/builtin/packages/libffi/package.py @@ -32,4 +32,9 @@ class Libffi(AutotoolsPackage, SourcewarePackage): # 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 |