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
commitae4030962605f12eb435327f540cf91590b7fbec (patch)
tree8490784d8c64107cbda1a9f7397b43f411f5648b /Library
parent3a948bfc21c632c456c5773105795413637a9e63 (diff)
downloadhomebrew-ae4030962605f12eb435327f540cf91590b7fbec.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