From b02acb37c080a6f697a6b534bdc768bf4d8ce6c9 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Thu, 24 Dec 2020 14:02:55 +0100 Subject: [PATCH] Remove warning on ARM --- Library/Homebrew/extend/os/mac/diagnostic.rb | 13 ------------- Library/Homebrew/install.rb | 5 ----- 2 files changed, 18 deletions(-) diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 81e78dbd26..11b7970122 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -63,7 +63,6 @@ module Homebrew def supported_configuration_checks %w[ - check_for_unsupported_arch check_for_unsupported_macos ].freeze end @@ -91,18 +90,6 @@ module Homebrew nil 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 return if Homebrew::EnvConfig.developer? diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 24e6fc59d1..9b4ece01eb 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -51,11 +51,6 @@ module Homebrew end 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? odie <<~EOS