Skip to content

Commit bb08347

Browse files
committed
gcc: only apply patches on macOS
1 parent 1fde2e1 commit bb08347

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Formula/g/gcc.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ class Gcc < Formula
1313
# Branch from the Darwin maintainer of GCC, with a few generic fixes and
1414
# Apple Silicon support, located at https://github.com/iains/gcc-14-branch
1515
patch do
16-
url "https://raw.githubusercontent.com/Homebrew/formula-patches/f30c309442a60cfb926e780eae5d70571f8ab2cb/gcc/gcc-14.2.0-r2.diff"
17-
sha256 "6c0a4708f35ccf2275e6401197a491e3ad77f9f0f9ef5761860768fa6da14d3d"
16+
on_macos do
17+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/f30c309442a60cfb926e780eae5d70571f8ab2cb/gcc/gcc-14.2.0-r2.diff"
18+
sha256 "6c0a4708f35ccf2275e6401197a491e3ad77f9f0f9ef5761860768fa6da14d3d"
19+
end
1820
end
1921

2022
# Fix for macOS 15.4 SDK issue https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119590
2123
patch do
22-
url "https://github.com/iains/gcc-14-branch/commit/efb88ebe0a6886f816c0d037df33df6556544ad6.patch?full_index=1"
23-
sha256 "4077af416eaf40a968e4b9d382aeb6470c2b79f09a52da2dd6aa91ace7af5c87"
24+
on_macos do
25+
url "https://github.com/iains/gcc-14-branch/commit/efb88ebe0a6886f816c0d037df33df6556544ad6.patch?full_index=1"
26+
sha256 "4077af416eaf40a968e4b9d382aeb6470c2b79f09a52da2dd6aa91ace7af5c87"
27+
end
2428
end
2529
end
2630

0 commit comments

Comments
 (0)