Explicitly pass key-value options to the build process

Fixes Homebrew/homebrew#28695.
This commit is contained in:
Jack Nagel 2014-04-26 19:09:49 -05:00
parent bdee729a41
commit 070bdc59b9

View File

@ -481,6 +481,13 @@ class FormulaInstaller
args << "--env=#{ARGV.env}" if ARGV.env
args << "--HEAD" if ARGV.build_head?
args << "--devel" if ARGV.build_devel?
f.build.each do |opt, _|
name = opt.name[/\A(.+)=\z$/, 1]
value = ARGV.value(name)
args << "--#{name}=#{value}" if name && value
end
args
end