aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ARGV.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/extend/ARGV.rb')
-rw-r--r--Library/Homebrew/extend/ARGV.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 959fd6a67..8503559d5 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -74,6 +74,13 @@ module HomebrewArgvExtension
include? '--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?
+ include? '--32-bit'
+ end
+
def build_from_source?
return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] \
or not MacOS.lion? or HOMEBREW_PREFIX.to_s != '/usr/local'