Merge pull request #2251 from fxcoudert/universal

Don't list duplicate dylibs for universal
This commit is contained in:
FX Coudert 2017-03-04 16:29:38 +01:00 committed by GitHub
commit e156a5dd43

View File

@ -54,7 +54,7 @@ module MachOShim
def dynamically_linked_libraries(except: :none) def dynamically_linked_libraries(except: :none)
lcs = macho.dylib_load_commands.reject { |lc| lc.type == except } lcs = macho.dylib_load_commands.reject { |lc| lc.type == except }
lcs.map(&:name).map(&:to_s) lcs.map(&:name).map(&:to_s).uniq
end end
def dylib_id def dylib_id