libgccjit: apply patch for Monterey (#88145)

This is the same patch used in GCC.
master
Carlo Cabrera 2021-10-28 17:01:05 +08:00 committed by GitHub
parent 032fb8ba17
commit 439075c71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,12 @@ class Libgccjit < Formula
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip
# Darwin 21 (Monterey) support
patch do
url "https://github.com/iains/gcc-darwin-arm64/commit/20f61faaed3b335d792e38892d826054d2ac9f15.patch?full_index=1"
sha256 "c0605179a856ca046d093c13cea4d2e024809ec2ad4bf3708543fc3d2e60504b"
end
def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"