Merge pull request #19511 from Homebrew/doctor-arm64-linux

os/linux/diagnostic: skip error on arm64 when `HOMEBREW_ARM64_TESTING` is set
This commit is contained in:
Mike McQuaid 2025-03-17 13:22:00 +00:00 committed by GitHub
commit 8588898530
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,8 @@ module OS
end
def check_supported_architecture
return if Hardware::CPU.arch == :x86_64
return if Hardware::CPU.intel?
return if Homebrew::EnvConfig.developer? && ENV["HOMEBREW_ARM64_TESTING"].present? && Hardware::CPU.arm?
<<~EOS
Your CPU architecture (#{Hardware::CPU.arch}) is not supported. We only support