aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:23 -0600
committerJack Nagel2013-01-26 11:37:01 -0600
commit26b1b88c974cc902b0e9c2c2b8d17a16335d8462 (patch)
treed94f64a9c0177d12f2fd28d2991064c6dcef189e /Library
parentcbf0fe654954a85ef5ecd03c332602674d7cde4f (diff)
downloadbrew-26b1b88c974cc902b0e9c2c2b8d17a16335d8462.tar.bz2
BuildOptions: check has_option? for universal and 32-bit
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_support.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index b049c6dfb..be50b0138 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -248,14 +248,14 @@ class BuildOptions
# True if the user requested a universal build.
def universal?
- @args.include? '--universal'
+ @args.include?('--universal') && has_option?('universal')
end
# Request a 32-bit only build.
# This is needed for some use-cases though we prefer to build Universal
# when a 32-bit version is needed.
def build_32_bit?
- @args.include? '--32-bit'
+ @args.include?('--32-bit') && has_option?('32-bit')
end
def used_options