From b5b049ab649a46fe4f274dfaf175cd0700d5ed84 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 12 Apr 2025 12:40:36 -0400 Subject: [PATCH] formula_cellar_checks: add no_cpuid_allowlist Sometimes the CPUID instruction exists in a dependency, e.g. `aws-checksums` performs CPU detection via `aws-c-common`. --- Library/Homebrew/formula_cellar_checks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 0e70e79cc3..42609a20db 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -320,6 +320,7 @@ module FormulaCellarChecks return unless dot_brew_formula.exist? return unless dot_brew_formula.read.include? "ENV.runtime_cpu_detection" + return if formula.tap&.audit_exception(:no_cpuid_allowlist, formula.name) # macOS `objdump` is a bit slow, so we prioritise llvm's `llvm-objdump` (~5.7x faster) # or binutils' `objdump` (~1.8x faster) if they are installed.