From 82c046b3e1aab914dc7d785720029ac50d49992e Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 11 Jan 2017 23:07:26 -0500 Subject: audit: Check for invocations of cctools. Now that ruby-macho is available, cctools should be invoked as little as possible. --- Library/Homebrew/dev-cmd/audit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/dev-cmd/audit.rb') diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 6d43c51bf..4314bb3c2 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1039,6 +1039,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) -- cgit v1.2.3