aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-08-25 14:57:26 -0700
committerMisty De Meo2013-08-28 20:21:06 -0700
commit1900b70bd6bc0ead60bf536b01cece3f02ba82f3 (patch)
tree958723fbc870ffc7fd182733f0d4e242100e980f /Library
parentc58d707158c365dd9c185b72f5a0003cad25a786 (diff)
downloadbrew-1900b70bd6bc0ead60bf536b01cece3f02ba82f3.tar.bz2
Check for valid --bottle-arch= when building
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
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