os/linux/diagnostic: skip error on arm64 when HOMEBREW_ARM64_TESTING is set

This[^1] will enable us to start testing arm64 bottle builds in
Homebrew/core when this environment variable is set.

[^1]: Along with some tweaks to the `dispatch-build-bottle` workflow.
This commit is contained in:
Carlo Cabrera 2025-03-17 20:52:12 +08:00 committed by Carlo Cabrera
parent 2462e40ca5
commit 343eac915b
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

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