Remove warning on ARM

This commit is contained in:
Francois-Xavier Coudert 2020-12-24 14:02:55 +01:00
parent e69a54d0d8
commit b02acb37c0
2 changed files with 0 additions and 18 deletions

View File

@ -63,7 +63,6 @@ module Homebrew
def supported_configuration_checks def supported_configuration_checks
%w[ %w[
check_for_unsupported_arch
check_for_unsupported_macos check_for_unsupported_macos
].freeze ].freeze
end end
@ -91,18 +90,6 @@ module Homebrew
nil nil
end end
def check_for_unsupported_arch
return if Homebrew::EnvConfig.developer?
return unless Hardware::CPU.arm?
<<~EOS
You are running macOS on a #{Hardware::CPU.arch} CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
#{please_create_pull_requests}
EOS
end
def check_for_unsupported_macos def check_for_unsupported_macos
return if Homebrew::EnvConfig.developer? return if Homebrew::EnvConfig.developer?

View File

@ -51,11 +51,6 @@ module Homebrew
end end
def check_cpu def check_cpu
return if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
# Handled by check_for_unsupported_arch in extend/os/mac/diagnostic.rb
return if Hardware::CPU.arm?
return unless Hardware::CPU.ppc? return unless Hardware::CPU.ppc?
odie <<~EOS odie <<~EOS