summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-10-10 15:35:15 -0500
committerGitHub <noreply@github.com>2023-10-10 22:35:15 +0200
commitb781a530a1eed2957378e21fa0af906226746c07 (patch)
tree80f49b9b27263cf98ac73be136977135fb9639da
parent390b0aa25c7e086088acf9c9e50fb35a962da02d (diff)
downloadspack-b781a530a1eed2957378e21fa0af906226746c07.tar.gz
spack-b781a530a1eed2957378e21fa0af906226746c07.tar.bz2
spack-b781a530a1eed2957378e21fa0af906226746c07.tar.xz
spack-b781a530a1eed2957378e21fa0af906226746c07.zip
GCC: fix build with Apple Clang 15 (#40318)
-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 f4ce615e7f..116371cdb2 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -783,6 +783,11 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
"--with-as=" + binutils.join("as"),
]
)
+ elif spec.satisfies("%apple-clang@15:"):
+ # https://github.com/iains/gcc-darwin-arm64/issues/117
+ # https://github.com/iains/gcc-12-branch/issues/22
+ # https://github.com/iains/gcc-13-branch/issues/8
+ options.append("--with-ld=/Library/Developer/CommandLineTools/usr/bin/ld-classic")
# enable_bootstrap
if spec.satisfies("+bootstrap"):