diff options
author | Seth R. Johnson <johnsonsr@ornl.gov> | 2020-02-19 13:50:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 12:50:32 -0600 |
commit | 2dac7b60a9ac07838c1291ca5038a9c86c16b50e (patch) | |
tree | dd3c36735de6f0f9afec54b2e4b2ebbb0bd624a6 /var | |
parent | 14025e89f63327bac5bbab081b227411ffda4623 (diff) | |
download | spack-2dac7b60a9ac07838c1291ca5038a9c86c16b50e.tar.gz spack-2dac7b60a9ac07838c1291ca5038a9c86c16b50e.tar.bz2 spack-2dac7b60a9ac07838c1291ca5038a9c86c16b50e.tar.xz spack-2dac7b60a9ac07838c1291ca5038a9c86c16b50e.zip |
Fix gcc 8.3 build on macOS 10.14 (#15089)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index df87800ff2..2c38296f11 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -197,6 +197,12 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # https://trac.macports.org/ticket/56502#no1 # see also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83531 patch('darwin/headers-10.13-fix.patch', when='@5.5.0') + if macos_version() >= Version('10.14'): + # Fix system headers for Mojave SDK: + # https://github.com/Homebrew/homebrew-core/pull/39041 + patch('https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc/8.3.0-xcode-bug-_Atomic-fix.patch', + sha256='33ee92bf678586357ee8ab9d2faddf807e671ad37b97afdd102d5d153d03ca84', + when='@6:8') if macos_version() >= Version('10.15'): # Fix system headers for Catalina SDK # (otherwise __OSX_AVAILABLE_STARTING ends up undefined) |