Only propagate universal option if the formula defines it

This commit is contained in:
Jack Nagel 2014-03-01 18:54:00 -06:00
parent 6d949599b5
commit 40369dbbcd

View File

@ -270,7 +270,9 @@ class FormulaInstaller
def inherited_options_for(f, dep) def inherited_options_for(f, dep)
options = Options.new 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 options
end end