mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Avoid relinking plugin dylibs
The `copy_dependencies` logic is invoking `change_non_system_libraries_path` with absolute paths to gstreamer *plugin dylibs*. `change_non_system_libraries_path` skips editing links in servo binary to relocatable dylibs, but the since the plugins have absolute paths, they are treated as 'non-relocable' and it will try to edit the *non-existent* (since plugins are loaded dynamically) link in servo bin. These unnecessary calls to change_link_name is cause of the slowness identified in #29764 This PR fixes the issue by ensuring plugins are not included in the call to change_non_system_libraries_path Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
This commit is contained in:
parent
1bb713521b
commit
df71aa2f1e
1 changed files with 1 additions and 1 deletions
|
@ -858,8 +858,8 @@ def copy_dependencies(binary_path, lib_path, gst_root):
|
|||
|
||||
# Update binary libraries
|
||||
binary_dependencies = set(otool(binary_path))
|
||||
binary_dependencies = binary_dependencies.union(macos_plugins())
|
||||
change_non_system_libraries_path(binary_dependencies, relative_path, binary_path)
|
||||
binary_dependencies = binary_dependencies.union(macos_plugins())
|
||||
|
||||
# Update dependencies libraries
|
||||
need_checked = binary_dependencies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue