From 26b1b88c974cc902b0e9c2c2b8d17a16335d8462 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 23 Jan 2013 00:26:23 -0600 Subject: [PATCH] BuildOptions: check has_option? for universal and 32-bit --- Library/Homebrew/formula_support.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index b049c6dfba..be50b01385 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