summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-02-01 12:19:24 +0100
committerGitHub <noreply@github.com>2022-02-01 11:19:24 +0000
commit80a3f01bbbb6304ee4791720279b29d59c799ec7 (patch)
treec1f2f9b095d31ba4489a18f0e59e6456ef2120e0
parentf5a70dece808a2b501952597b66943c3cc7f91f4 (diff)
downloadspack-80a3f01bbbb6304ee4791720279b29d59c799ec7.tar.gz
spack-80a3f01bbbb6304ee4791720279b29d59c799ec7.tar.bz2
spack-80a3f01bbbb6304ee4791720279b29d59c799ec7.tar.xz
spack-80a3f01bbbb6304ee4791720279b29d59c799ec7.zip
gcc: allow building 11.2.0 on macOS (#28662)
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 567170b492..131c623284 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -258,6 +258,11 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
# (otherwise __OSX_AVAILABLE_STARTING ends up undefined)
patch('https://raw.githubusercontent.com/Homebrew/formula-patches/b8b8e65e/gcc/9.2.0-catalina.patch',
sha256='0b8d14a7f3c6a2f0d2498526e86e088926671b5da50a554ffa6b7f73ac4f132b', when='@9.2.0')
+
+ # See https://raw.githubusercontent.com/Homebrew/homebrew-core/3b7db4457ac64a31e3bbffc54b04c4bd824a4a4a/Formula/gcc.rb
+ patch('https://github.com/iains/gcc-darwin-arm64/commit/20f61faaed3b335d792e38892d826054d2ac9f15.patch?full_index=1',
+ sha256='c0605179a856ca046d093c13cea4d2e024809ec2ad4bf3708543fc3d2e60504b', when='@11.2.0')
+
# Use -headerpad_max_install_names in the build,
# otherwise updated load commands won't fit in the Mach-O header.
# This is needed because `gcc` avoids the superenv shim.