Skip to content

Commit

Permalink
gcc: fix for Monterey
Browse files Browse the repository at this point in the history
Closes Homebrew#89960.

Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
fxcoudert authored and BrewTestBot committed Nov 26, 2021
1 parent a72279d commit 744b10f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/gcc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Gcc < Formula
end
end
license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" }
revision 2
revision 3
head "https://gcc.gnu.org/git/gcc.git", branch: "master"

# We can't use `url :stable` here due to the ARM-specific branch above.
Expand Down Expand Up @@ -58,6 +58,15 @@ class Gcc < Formula
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip

# Fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992
# Working around a macOS Monterey bug
if MacOS.version == :monterey
patch do
url "https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=fabe8cc41e9b01913e2016861237d1d99d7567bf"
sha256 "9d3c2c91917cdc37d11385bdeba005cd7fa89efdbdf7ca38f7de3f6fa8a8e51b"
end
end

def version_suffix
if build.head?
"HEAD"
Expand Down

0 comments on commit 744b10f

Please sign in to comment.