From 51785437bc463416353c178f14f44f2fbd60bf9f Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Wed, 27 Nov 2024 21:58:18 -0600 Subject: Patch to fix building gcc@14.2 on darwin. Fixes #45628 (#47830) --- var/spack/repos/builtin/packages/gcc/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 04b37259b1..6b9f57ec9f 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -439,6 +439,11 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage, CompilerPackage): sha256="1529cff128792fe197ede301a81b02036c8168cb0338df21e4bc7aafe755305a", when="@14.1.0 target=aarch64:", ) + patch( + "https://raw.githubusercontent.com/Homebrew/formula-patches/f30c309442a60cfb926e780eae5d70571f8ab2cb/gcc/gcc-14.2.0-r2.diff", + sha256="6c0a4708f35ccf2275e6401197a491e3ad77f9f0f9ef5761860768fa6da14d3d", + when="@14.2.0 target=aarch64:", + ) conflicts("+bootstrap", when="@11.3.0,13.1: target=aarch64:") # Use -headerpad_max_install_names in the build, -- cgit v1.2.3-70-g09d2