diff options
| author | Mike McQuaid | 2016-12-20 10:22:30 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-12-20 10:22:30 +0000 |
| commit | f98304026bcb3bc68b47210f2434e09683987363 (patch) | |
| tree | fd5075fd3e7a63efbac0455b8891f2e1933bc5de /Library/Homebrew/compat | |
| parent | 482568579b8c9e699ca19207643cc483975869a4 (diff) | |
| download | brew-f98304026bcb3bc68b47210f2434e09683987363.tar.bz2 | |
Deprecate 32-bit options.
These were formerly supported but as it has been a very long time since
32-bit software was necessary on macOS these have been deprecated with
a `brew audit` warning and a future `odeprecated`.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/ARGV.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/compat/build_options.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/compat/tab.rb | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/ARGV.rb b/Library/Homebrew/compat/ARGV.rb new file mode 100644 index 000000000..23d02ce1a --- /dev/null +++ b/Library/Homebrew/compat/ARGV.rb @@ -0,0 +1,6 @@ +module HomebrewArgvExtension + def build_32_bit? + # odeprecated "ARGV.build_32_bit?" + include? "--32-bit" + end +end diff --git a/Library/Homebrew/compat/build_options.rb b/Library/Homebrew/compat/build_options.rb new file mode 100644 index 000000000..52aa9b951 --- /dev/null +++ b/Library/Homebrew/compat/build_options.rb @@ -0,0 +1,6 @@ +class BuildOptions + def build_32_bit? + # odeprecated "build.build_32_bit?" + include?("32-bit") && option_defined?("32-bit") + end +end diff --git a/Library/Homebrew/compat/tab.rb b/Library/Homebrew/compat/tab.rb new file mode 100644 index 000000000..58fdc4913 --- /dev/null +++ b/Library/Homebrew/compat/tab.rb @@ -0,0 +1,6 @@ +class Tab < OpenStruct + def build_32_bit? + # odeprecated "Tab.build_32_bit?" + include?("32-bit") + end +end |
