Skip to content

Commit

Permalink
hardware: rename rosetta method.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Sep 1, 2020
1 parent d9135c5 commit 74d3f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/os/mac/hardware/cpu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def universal_archs
# 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

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/hardware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def arch_flag(arch)
"-march=#{arch}"
end

def running_under_rosetta?
def in_rosetta?
false
end
end
Expand Down

0 comments on commit 74d3f0b

Please sign in to comment.