Skip to content

Commit 25fece7

Browse files
committed
Merge pull request #2 from UniqMartin/fat-dylibs
fix 'linked_dylibs' for fat files with single arch
2 parents 6699279 + d92db90 commit 25fece7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/macho/fat_file.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ def dylib_id=(new_id)
131131
# All shared libraries linked to the file's Mach-Os.
132132
# @return [Array<String>] an array of all shared libraries
133133
def linked_dylibs
134-
dylibs = machos.map(&:linked_dylibs).flatten
135-
136134
# can machos inside fat binaries have different dylibs?
137-
dylibs.uniq!
135+
machos.flat_map(&:linked_dylibs).uniq
138136
end
139137

140138
# Changes all dependent shared library install names from `old_name` to `new_name`.

0 commit comments

Comments
 (0)