Skip to content

Commit

Permalink
tta: fix MacOS references.
Browse files Browse the repository at this point in the history
Needed after Homebrew/brew#16306.
  • Loading branch information
MikeMcQuaid committed Dec 14, 2023
1 parent dc019d9 commit 129c107
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Formula/t/tta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ class Tta < Formula

def install
args = ["--disable-silent-rules"]
args << "--enable-#{MacOS.version.requires_sse4? ? "sse4" : "sse2"}" if Hardware::CPU.intel?
if Hardware::CPU.intel?
sse = if OS.mac? && MacOS.version.requires_sse4?
"sse4"
else
"sse2"
end
args << "--enable-#{sse}"
end

system "./configure", *std_configure_args, *args
system "make", "install"
Expand Down

0 comments on commit 129c107

Please sign in to comment.