File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,23 @@ class Povray < Formula
3535
3636 uses_from_macos "zlib"
3737
38+ on_sequoia do
39+ # https://developer.apple.com/documentation/xcode-release-notes/xcode-16_4-release-notes#Apple-Clang-Compiler
40+ if MacOS ::Xcode . version . major_minor == "16.3" || MacOS ::CLT . version . major_minor == "16.3"
41+ depends_on "llvm@18" => :build
42+ end
43+ end
44+
3845 def install
3946 ENV . cxx11
4047
48+ # https://developer.apple.com/documentation/xcode-release-notes/xcode-16_4-release-notes#Apple-Clang-Compiler
49+ if MacOS ::Xcode . version . major_minor == "16.3" || MacOS ::CLT . version . major_minor == "16.3"
50+ ENV [ "CC" ] = Formula [ "llvm@18" ] . opt_bin /"clang"
51+ ENV [ "CXX" ] = Formula [ "llvm@18" ] . opt_bin /"clang++"
52+ ENV . append_to_cflags "-I#{ HOMEBREW_PREFIX } /include"
53+ end
54+
4155 args = %W[
4256 COMPILED_BY=homebrew
4357 --disable-debug
You can’t perform that action at this time.
0 commit comments