Skip to content

Commit f8c2e1f

Browse files
libffi: set target triplet to aarch64-apple-darwin on Mac M1. (spack#23750)
1 parent 6b1849b commit f8c2e1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

var/spack/repos/builtin/packages/libffi/package.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ def configure_args(self):
3232
# Spack adds its own target flags, so tell libffi not to
3333
# second-guess us
3434
args.append('--without-gcc-arch')
35+
# At the moment, build scripts accept 'aarch64-apple-darwin'
36+
# but not 'arm64-apple-darwin'.
37+
# See: https://github.com/libffi/libffi/issues/571
38+
if self.spec.satisfies('platform=darwin target=aarch64:'):
39+
args.append('--build=aarch64-apple-darwin')
3540
return args

0 commit comments

Comments
 (0)