Merge pull request #15684 from carlocab/rpath-dupes

os/mac/mach: report duplicate rpaths
This commit is contained in:
Carlo Cabrera 2023-07-17 13:28:06 +08:00 committed by GitHub
commit 8ffac3e2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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