summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2021-10-15 09:30:09 -0700
committerGitHub <noreply@github.com>2021-10-15 12:30:09 -0400
commit33da53e325bb04e7676531efbe58d238df8d2c85 (patch)
tree390141c613ad00a0661e9c8ba6af2aad2ba859d7 /var
parent6686db42adf23e572a95ee9462663cce297af457 (diff)
downloadspack-33da53e325bb04e7676531efbe58d238df8d2c85.tar.gz
spack-33da53e325bb04e7676531efbe58d238df8d2c85.tar.bz2
spack-33da53e325bb04e7676531efbe58d238df8d2c85.tar.xz
spack-33da53e325bb04e7676531efbe58d238df8d2c85.zip
GCC: Conflict for <12 for M1 (#26318)
aarch64/M1 is only a supported build combination for GCC in the planned GCC 12+ release.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index d8772b215e..83836cbf79 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -225,6 +225,10 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
# Binutils can't build ld on macOS
conflicts('+binutils', when='platform=darwin')
+ # aarch64/M1 is supported in GCC 12+
+ conflicts('@:11.99', when='target=aarch64: platform=darwin',
+ msg='Only GCC 12 and newer support macOS M1 (aarch64)')
+
# Newer binutils than RHEL's is required to run `as` on some instructions
# generated by new GCC (see https://github.com/spack/spack/issues/12235)
conflicts('~binutils', when='@7: os=rhel6',