mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Xcode and other build systems currently link the compatibility libraries into every executable or dynamic library, which can cause a chain of objc_getClass compatibility hacks to pile up if a program loads a lot of dynamic libraries. In the static constructor that installs the objc_getClass compatibility shim, check whether it's running on behalf of the main executable before installing the shim.
4.0 KiB
4.0 KiB