diff options
| author | Mike McQuaid | 2017-12-04 08:46:23 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-04 08:46:23 +0000 |
| commit | 4f5e938a5dbe049e05dea19495b6547acc5c5b5b (patch) | |
| tree | fec9016d552cd9290ef89dfdac5523822b3bce9c /Library/Homebrew/os/mac | |
| parent | 0ad42ebbcb735422612a7c6d4edc5ad88044dd4b (diff) | |
| parent | d79c5ade1abaad0fb1ea88f2b949def8dcfddb81 (diff) | |
| download | brew-1.3.9.tar.bz2 | |
Merge pull request #3517 from sjackman/linkage1.3.9
Implement linkage for Linux
Diffstat (limited to 'Library/Homebrew/os/mac')
| -rw-r--r-- | Library/Homebrew/os/mac/linkage_checker.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/os/mac/mach.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/linkage_checker.rb b/Library/Homebrew/os/mac/linkage_checker.rb index f6aa4c2f3..941a5a847 100644 --- a/Library/Homebrew/os/mac/linkage_checker.rb +++ b/Library/Homebrew/os/mac/linkage_checker.rb @@ -23,7 +23,7 @@ class LinkageChecker def check_dylibs @keg.find do |file| next if file.symlink? || file.directory? - next unless file.dylib? || file.mach_o_executable? || file.mach_o_bundle? + next unless file.dylib? || file.binary_executable? || file.mach_o_bundle? # weakly loaded dylibs may not actually exist on disk, so skip them # when checking for broken linkage diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index 9b53c4979..958618869 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -103,6 +103,8 @@ module MachOShim mach_data.any? { |m| m.fetch(:type) == :executable } end + alias binary_executable? mach_o_executable? + # @private def mach_o_bundle? mach_data.any? { |m| m.fetch(:type) == :bundle } |
