Skip to content

Commit f0ff6b0

Browse files
committed
povray: workaround
1 parent 9b41296 commit f0ff6b0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Formula/p/povray.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)