os/mac/mach: report duplicate rpaths

We don't want to call `uniq` on this because this breaks our handling of
duplicate rpaths.
This commit is contained in:
Carlo Cabrera 2023-07-17 13:11:12 +08:00
parent bd5bd8437f
commit 13f2dc325e
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -90,7 +90,7 @@ module MachOShim
end end
def rpaths(resolve_variable_references: true) def rpaths(resolve_variable_references: true)
names = macho.rpaths.uniq names = macho.rpaths
names.map! { |name| resolve_variable_name(name) } if resolve_variable_references names.map! { |name| resolve_variable_name(name) } if resolve_variable_references