diff options
| author | Misty De Meo | 2013-08-25 14:57:26 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-08-28 20:21:06 -0700 |
| commit | 1900b70bd6bc0ead60bf536b01cece3f02ba82f3 (patch) | |
| tree | 958723fbc870ffc7fd182733f0d4e242100e980f /Library | |
| parent | c58d707158c365dd9c185b72f5a0003cad25a786 (diff) | |
| download | brew-1900b70bd6bc0ead60bf536b01cece3f02ba82f3.tar.bz2 | |
Check for valid --bottle-arch= when building
Diffstat (limited to 'Library')
| -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 |
