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/dev-cmd | |
| 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/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 0112c524f..5545a3d36 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -448,8 +448,13 @@ class FormulaAuditor def audit_options formula.options.each do |o| + if o.name != "32-bit" + problem "macOS has been 64-bit only since 10.6 so 32-bit options are deprecated." + end + next unless @strict - if o.name !~ /with(out)?-/ && o.name != "c++11" && o.name != "universal" && o.name != "32-bit" + + if o.name !~ /with(out)?-/ && o.name != "c++11" && o.name != "universal" problem "Options should begin with with/without. Migrate '--#{o.name}' with `deprecated_option`." end |
