gcc: drop target bootstrap flags for aarch64 (#33813)
See https://github.com/spack/spack/issues/31184 GCC bootstrap logic adds `-mpcu` for libatomic (iirc), which conflicts with the `-march` flag we provide.
This commit is contained in:
parent
6dd3c78924
commit
9a793fe01b
1 changed files with 3 additions and 1 deletions
|
@ -681,7 +681,9 @@ def build_optimization_config(self):
|
||||||
# concretization, so we'll stick to that. The other way around however can
|
# concretization, so we'll stick to that. The other way around however can
|
||||||
# result in compilation errors, when gcc@7 is built with gcc@11, and znver3
|
# result in compilation errors, when gcc@7 is built with gcc@11, and znver3
|
||||||
# is taken as a the target, which gcc@7 doesn't support.
|
# is taken as a the target, which gcc@7 doesn't support.
|
||||||
if "+bootstrap %gcc" in self.spec:
|
# Note we're not adding this for aarch64 because of
|
||||||
|
# https://github.com/spack/spack/issues/31184
|
||||||
|
if "+bootstrap %gcc" in self.spec and self.spec.target.family != "aarch64":
|
||||||
flags += " " + self.get_common_target_flags(self.spec)
|
flags += " " + self.get_common_target_flags(self.spec)
|
||||||
|
|
||||||
if "+bootstrap" in self.spec:
|
if "+bootstrap" in self.spec:
|
||||||
|
|
Loading…
Reference in a new issue