Check for valid --bottle-arch= when building

This commit is contained in:
Misty De Meo 2013-08-25 14:57:26 -07:00
parent c58d707158
commit 1900b70bd6

View File

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