From 070bdc59b9953fa1b92fdc8dcc8e0400dcdba181 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 26 Apr 2014 19:09:49 -0500 Subject: [PATCH] Explicitly pass key-value options to the build process Fixes Homebrew/homebrew#28695. --- Library/Homebrew/formula_installer.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index c8847eb08c..21c3115d26 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