Merge pull request #17659 from bevanjkay/rosetta

This commit is contained in:
Mike McQuaid 2024-07-09 08:35:34 +01:00 committed by GitHub
commit b098b4c3a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,7 +141,7 @@ module Cask
end
caveat :requires_rosetta do
next unless Hardware::CPU.arm?
next if !Hardware::CPU.arm? && Homebrew::SimulateSystem.current_arch != :arm
<<~EOS
#{@cask} is built for Intel macOS and so requires Rosetta 2 to be installed.