Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Use DYLD_FALLBACK_LIBRARY_PATH for dylib_path_envvar on macOS #1752
When loading and linking a dynamic library or bundle, dlopen
This is the same change as was applied to cargo in
referenced this pull request
Apr 11, 2019
I've been meaning to look at making this change, but never got around to it. This also has a benefit that it improves performance on MacOS 10.13 and newer, though that probably doesn't affect most people.
You have to be careful when setting
I'm also curious if setting the library path is necessary at all. rustc uses
Testing this will be difficult. rustup doesn't really have a nightly testing channel, so it's difficult to pre-flight a change like this. It'll be tough to know who it will affect.