diff options
| author | Mike McQuaid | 2016-12-20 10:54:54 +0000 |
|---|---|---|
| committer | GitHub | 2016-12-20 10:54:54 +0000 |
| commit | 1d2390b2de6b4176f1d8011f5db78cdc967642b1 (patch) | |
| tree | 94e1e10c9aceadf5f9d814561b4d6a4cb14b060d /Library/Homebrew/dev-cmd | |
| parent | f4291caaa4f4c3770081ce9ac017009535adaba1 (diff) | |
| parent | f98304026bcb3bc68b47210f2434e09683987363 (diff) | |
| download | brew-1d2390b2de6b4176f1d8011f5db78cdc967642b1.tar.bz2 | |
Merge pull request #1698 from MikeMcQuaid/deprecate-32-bit
Deprecate 32-bit options.
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 540925947..b01335f83 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 |
