From 40369dbbcdf4c1c3447407da299eccb6dca2f4de Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 1 Mar 2014 18:54:00 -0600 Subject: [PATCH] Only propagate universal option if the formula defines it --- Library/Homebrew/formula_installer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 43d84d1ebb..c58caefa01 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -270,7 +270,9 @@ class FormulaInstaller def inherited_options_for(f, dep) options = Options.new - options << Option.new("universal") if f.build.universal? && !dep.build? + if f.build.universal? && !dep.build? && dep.to_formula.build.has_option?("universal") + options << Option.new("universal") + end options end