Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC: Xcode 10 2 patches #39134

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions Formula/gcc.rb
Expand Up @@ -30,12 +30,13 @@ class Gcc < Formula
cxxstdlib_check :skip

# Patch for Xcode bug, taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864#c43
# This should be removed in the next release of GCC; this is an xcode bug, but
# this patch is a work around committed to trunk and planned to backport to
# 6, 7, 8 branches
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc/8.3.0-xcode-bug-_Atomic-fix.patch"
sha256 "33ee92bf678586357ee8ab9d2faddf807e671ad37b97afdd102d5d153d03ca84"
# This should be removed in the next release of GCC if fixed by apple; this is an xcode bug,
# but this patch is a work around committed to GCC trunk
if MacOS::Xcode.version >= "10.2"
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc/8.3.0-xcode-bug-_Atomic-fix.patch"
sha256 "33ee92bf678586357ee8ab9d2faddf807e671ad37b97afdd102d5d153d03ca84"
end
end

def version_suffix
Expand Down
12 changes: 11 additions & 1 deletion Formula/gcc@5.rb
Expand Up @@ -8,7 +8,7 @@ def osmajor
url "https://ftp.gnu.org/gnu/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz"
mirror "https://ftpmirror.gnu.org/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz"
sha256 "530cea139d82fe542b358961130c69cfde8b3d14556370b65823d2f91f0ced87"
revision 2
revision 3

bottle do
sha256 "3cef0d77229769d75a85b545be64ea74fdca7fe99b78a08025d9523dae2db4c1" => :high_sierra
Expand Down Expand Up @@ -57,6 +57,16 @@ def osmajor
end
end

# Patch for Xcode bug, taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864#c43
# This should be removed in the next release of GCC if fixed by apple; this is an xcode bug,
# but this patch is a work around committed to GCC trunk
if MacOS::Xcode.version >= "10.2"
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%405/gcc5-xcode10.2.patch"
sha256 "6834bec30c54ab1cae645679e908713102f376ea0fc2ee993b3c19995832fe56"
end
end

def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"
Expand Down
11 changes: 11 additions & 0 deletions Formula/gcc@6.rb
Expand Up @@ -4,6 +4,7 @@ class GccAT6 < Formula
url "https://ftp.gnu.org/gnu/gcc/gcc-6.5.0/gcc-6.5.0.tar.xz"
mirror "https://ftpmirror.gnu.org/gcc/gcc-6.5.0/gcc-6.5.0.tar.xz"
sha256 "7ef1796ce497e89479183702635b14bb7a46b53249209a5e0f999bebf4740945"
revision 1

bottle do
sha256 "c4547a5c70b310be136aa3ae73a2dda4f0ef8a63b0759edd3849fbddb0770eb6" => :mojave
Expand All @@ -26,6 +27,16 @@ class GccAT6 < Formula
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip

# Patch for Xcode bug, taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864#c43
# This should be removed in the next release of GCC if fixed by apple; this is an xcode bug,
# but this patch is a work around committed to GCC trunk
if MacOS::Xcode.version >= "10.2"
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%406/gcc6-xcode10.2.patch"
sha256 "0f091e8b260bcfa36a537fad76823654be3ee8462512473e0b63ed83ead18085"
end
end

def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"
Expand Down
11 changes: 11 additions & 0 deletions Formula/gcc@7.rb
Expand Up @@ -4,6 +4,7 @@ class GccAT7 < Formula
url "https://ftp.gnu.org/gnu/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz"
mirror "https://ftpmirror.gnu.org/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz"
sha256 "eddde28d04f334aec1604456e536416549e9b1aa137fc69204e65eb0c009fe51"
revision 1

bottle do
sha256 "28647ff0add287c71766bca5256251a8024df615bac3165fafce28bdc2a7f2b6" => :mojave
Expand All @@ -26,6 +27,16 @@ class GccAT7 < Formula
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip

# Patch for Xcode bug, taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864#c43
# This should be removed in the next release of GCC if fixed by apple; this is an xcode bug,
# but this patch is a work around committed to GCC trunk
if MacOS::Xcode.version >= "10.2"
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%407/gcc7-xcode10.2.patch"
sha256 "873f791d249467bd4187f2994b08a924774d39311af93b61c827e066434181fe"
end
end

def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"
Expand Down