aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-01 18:54:00 -0600
committerJack Nagel2014-03-01 18:55:32 -0600
commit30f55fbdddb053ef592a41e219f1cd5181f7d2ed (patch)
tree5110f7ea908b6fcc59ae2a0cd4acfa76269d4c1c /Library
parentb36d4e4543ba3230808dfa74379a5d74ca1c908c (diff)
downloadhomebrew-30f55fbdddb053ef592a41e219f1cd5181f7d2ed.tar.bz2
Only propagate universal option if the formula defines it
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 43d84d1eb..c58caefa0 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