Skip to content

Commit 1d548bf

Browse files
authored
Merge pull request #196931 from Homebrew/mono-sequoia-workaround
mono: workaround for Sequoia
2 parents 85e340a + 52f654a commit 1d548bf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Formula/m/mono.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ class Mono < Formula
3232
uses_from_macos "krb5"
3333
uses_from_macos "zlib"
3434

35+
on_macos do
36+
if DevelopmentTools.clang_build_version == 1600
37+
depends_on "llvm" => :build
38+
39+
fails_with :clang do
40+
cause <<~EOS
41+
Got a segv while executing native code. This usually indicates
42+
a fatal error in the mono runtime or one of the native libraries
43+
used by your application.
44+
EOS
45+
end
46+
end
47+
end
48+
3549
on_linux do
3650
depends_on "ca-certificates"
3751
end
@@ -50,6 +64,8 @@ class Mono < Formula
5064
link_overwrite "lib/cli"
5165

5266
def install
67+
ENV.llvm_clang if DevelopmentTools.clang_build_version == 1600
68+
5369
# Replace hardcoded /usr/share directory. Paths like /usr/share/.mono,
5470
# /usr/share/.isolatedstorage, and /usr/share/template are referenced in code.
5571
inreplace_files = %w[

0 commit comments

Comments
 (0)