aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-12-20 10:54:54 +0000
committerGitHub2016-12-20 10:54:54 +0000
commit1d2390b2de6b4176f1d8011f5db78cdc967642b1 (patch)
tree94e1e10c9aceadf5f9d814561b4d6a4cb14b060d /Library/Homebrew/dev-cmd
parentf4291caaa4f4c3770081ce9ac017009535adaba1 (diff)
parentf98304026bcb3bc68b47210f2434e09683987363 (diff)
downloadbrew-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.rb7
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