Explicitly pass key-value options to the build process
Fixes Homebrew/homebrew#28695.
This commit is contained in:
parent
bdee729a41
commit
070bdc59b9
@ -481,6 +481,13 @@ class FormulaInstaller
|
|||||||
args << "--env=#{ARGV.env}" if ARGV.env
|
args << "--env=#{ARGV.env}" if ARGV.env
|
||||||
args << "--HEAD" if ARGV.build_head?
|
args << "--HEAD" if ARGV.build_head?
|
||||||
args << "--devel" if ARGV.build_devel?
|
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
|
args
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user