diff options
| author | Adam Vandenberg | 2012-01-01 13:48:30 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-02 14:53:36 -0800 |
| commit | 28a00a2c090a96dcded281bfc1a5e3ff74a9fde5 (patch) | |
| tree | 4e03b09181409d383906406f7fc097fef5adacde /Library | |
| parent | 826064880e8c1b0b2153b2157294bba9b8eaaf5e (diff) | |
| download | brew-28a00a2c090a96dcded281bfc1a5e3ff74a9fde5.tar.bz2 | |
Standardize 32 bit build switch
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ARGV.rb | 7 |
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' |
