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`.
This commit is contained in:
Michael Cho 2025-04-12 12:40:36 -04:00
parent 7b34fcc330
commit b5b049ab64
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -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.