diff options
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 99f48d546..e1cdfd8da 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -90,6 +90,10 @@ class FormulaInstaller install_dependencies end + if ARGV.build_bottle? && (arch = ARGV.bottle_arch) && !Hardware::CPU.optimization_flags.include?(arch) + raise "Unrecognized architecture for --bottle-arch: #{arch}" + end + oh1 "Installing #{Tty.green}#{f}#{Tty.reset}" if show_header @@attempted << f |
