Skip to content

Commit

Permalink
Merge pull request #191708 from Homebrew/gcc_macos_usage_again
Browse files Browse the repository at this point in the history
gcc@5: fix MacOS usage (again)
  • Loading branch information
BrewTestBot authored Sep 24, 2024
2 parents 4637f7e + ed043cf commit da47540
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Formula/g/gcc@5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GccAT5 < Formula
# 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
on_macos do
if OS::Mac::Xcode.version >= "10.2"
if OS.mac? && MacOS::Xcode.version >= "10.2"
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/91d57ebe88e17255965fa88b53541335ef16f64a/gcc%405/gcc5-xcode10.2.patch"
sha256 "6834bec30c54ab1cae645679e908713102f376ea0fc2ee993b3c19995832fe56"
Expand Down
2 changes: 1 addition & 1 deletion Formula/g/gcc@6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GccAT6 < Formula
# 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
on_macos do
if OS::Mac::Xcode.version >= "10.2"
if OS.mac? && MacOS::Xcode.version >= "10.2"
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/91d57ebe88e17255965fa88b53541335ef16f64a/gcc%406/gcc6-xcode10.2.patch"
sha256 "0f091e8b260bcfa36a537fad76823654be3ee8462512473e0b63ed83ead18085"
Expand Down

0 comments on commit da47540

Please sign in to comment.