Merge pull request #18636 from Homebrew/swift-dylib_id-fix
os/mac/keg_relocate: don't change Swift stdlib dylib IDs
This commit is contained in:
commit
d0af2d4e11
@ -141,6 +141,9 @@ module OS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def dylib_id_for(file)
|
def dylib_id_for(file)
|
||||||
|
# Swift dylib IDs should be /usr/lib/swift
|
||||||
|
return file.dylib_id if file.dylib_id.start_with?("/usr/lib/swift/libswift")
|
||||||
|
|
||||||
# The new dylib ID should have the same basename as the old dylib ID, not
|
# The new dylib ID should have the same basename as the old dylib ID, not
|
||||||
# the basename of the file itself.
|
# the basename of the file itself.
|
||||||
basename = File.basename(file.dylib_id)
|
basename = File.basename(file.dylib_id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user