Skip to content

Commit 7db073d

Browse files
committed
no longer need to patch zutil since PR#1814 in riscv-gnu-toolchain
1 parent 2434aac commit 7db073d

2 files changed

Lines changed: 0 additions & 48 deletions

File tree

riscv-gnu-toolchain.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ class RiscvGnuToolchain < Formula
5050
depends_on "mpfr"
5151
depends_on "zstd"
5252

53-
# patch zlib to compile on newer macOS. remove when zlib >= 1.3.1
54-
def patch
55-
system "git", "submodule", "update", "--depth", "1", "--init", "--recursive", "binutils"
56-
system "patch", "-p1", "-i", Pathname(__dir__) / "zlib-fix.patch"
57-
end
58-
5953
def install
6054
# disable crazy flag additions
6155
ENV.delete "CPATH"
@@ -71,12 +65,6 @@ def install
7165
]
7266
args << "--enable-multilib" unless build.with?("NOmultilib")
7367

74-
# Workaround for M1
75-
# See https://github.com/riscv/homebrew-riscv/issues/47
76-
# 2024-01-11 Commenting out because no longer needed?
77-
# system "sed", "-i", ".bak", "s/.*=host-darwin.o$//", "gcc/gcc/config.host"
78-
# system "sed", "-i", ".bak", "s/.* x-darwin.$//", "gcc/gcc/config.host"
79-
8068
system "./configure", *args
8169
system "gmake"
8270

zlib-fix.patch

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)