Merge pull request #10132 from fxcoudert/arm-warning
Remove warning on ARM
This commit is contained in:
commit
5818b28479
@ -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?
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user