diff options
| author | Jack Nagel | 2014-04-26 19:09:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-26 19:10:21 -0500 |
| commit | 1103cb319e15c3b0f24b4d2d01a965839171160b (patch) | |
| tree | 4c6febae33a458902315542f3319e110659397ac /Library/Homebrew/formula_installer.rb | |
| parent | 59c374f51c0213b30bcb8b2ce2bdec8541da857c (diff) | |
| download | homebrew-1103cb319e15c3b0f24b4d2d01a965839171160b.tar.bz2 | |
Explicitly pass key-value options to the build process
Fixes #28695.
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index c8847eb08..21c3115d2 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -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 |
