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"