From 129c10783ef546e83a80e43f3a841265fb3beb51 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 14 Dec 2023 10:50:53 +0000 Subject: [PATCH] tta: fix MacOS references. Needed after https://github.com/Homebrew/brew/pull/16306. --- Formula/t/tta.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Formula/t/tta.rb b/Formula/t/tta.rb index 94db75ab5a14..96b5712bfa82 100644 --- a/Formula/t/tta.rb +++ b/Formula/t/tta.rb @@ -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"