File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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[
You can’t perform that action at this time.
0 commit comments