aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorWilliam Woodruff2017-03-28 22:03:57 -0400
committerGitHub2017-03-28 22:03:57 -0400
commit8608d1ea78cbe7c6dc851a3ad8f083dd6b399293 (patch)
tree27668ab1efc23ebbe2133ec8e3afd6211f81ac83 /Library/Homebrew/dev-cmd/audit.rb
parentb757c927afe7abb5d284cf28dc7d5e3321dba14c (diff)
parent82c046b3e1aab914dc7d785720029ac50d49992e (diff)
downloadbrew-8608d1ea78cbe7c6dc851a3ad8f083dd6b399293.tar.bz2
Merge pull request #1828 from woodruffw/audit-cctools
audit: Check for invocations of cctools.
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 0fc26656a..b6d7dbd2a 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1185,6 +1185,10 @@ class FormulaAuditor
problem "'fails_with :llvm' is now a no-op so should be removed"
end
+ if line =~ /system\s+['"](otool)|(install_name_tool)|(lipo)/
+ problem "Use ruby-macho instead of calling #{$1}"
+ end
+
if formula.tap.to_s == "homebrew/core"
["OS.mac?", "OS.linux?"].each do |check|
next unless line.include?(check)