aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-01 18:54:00 -0600
committerJack Nagel2014-03-01 18:55:32 -0600
commit40369dbbcdf4c1c3447407da299eccb6dca2f4de (patch)
treea467acb93f490bb79367a9660c556422e351da49 /Library/Homebrew/formula_installer.rb
parent6d949599b5a9b4d770420fa2e0eec0c143d0e11d (diff)
downloadbrew-40369dbbcdf4c1c3447407da299eccb6dca2f4de.tar.bz2
Only propagate universal option if the formula defines it
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-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