diff options
| author | Mike McQuaid | 2017-01-15 02:31:11 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2017-01-15 02:31:11 -0800 |
| commit | f4496e85e515180f96e0863af3047bf3f4a94e81 (patch) | |
| tree | 3fed583444bd6ea0346ef3ca28576581d62ebbac /Library/Homebrew/dev-cmd/audit.rb | |
| parent | ebf3d939d1d63ea2cf8b8185e1c36a6e4a066d48 (diff) | |
| download | brew-f4496e85e515180f96e0863af3047bf3f4a94e81.tar.bz2 | |
audit: don't allow universal for new formulae.
We're frowning on these now so may as well turn that into code.
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 744aa6fbe..f2306debf 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -481,6 +481,10 @@ class FormulaAuditor next unless @strict + if o.name == "universal" + problem "macOS has been 64-bit only since 10.6 so universal options are deprecated." + end + 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 |
