diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 919c47bc84..308e94ea0a 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -67,7 +67,7 @@ module Hardware # Apple Silicon Mac. This can be detected via seeing if there's a # conflict between what `uname` report and the underlying `sysctl` flags, # since the `sysctl` flags don't change behaviour under Rosetta. - def running_under_rosetta? + def in_rosetta? intel? && physical_cpu_arm64? end diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index 4d02fef9aa..ea63270b27 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -155,7 +155,7 @@ module Hardware "-march=#{arch}" end - def running_under_rosetta? + def in_rosetta? false end end