You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Force hidden visibility on functions under gcc for distinct static locals
This commit adds an attribute macro PYBIND11_UNSHARED_STATIC_LOCALS
that forces a function to have hidden visibility under gcc. This is
needed to force gcc to avoid sharing static local instances across
modules (which happens even under a RTLD_LOCAL dlopen()!)
This updates the workaround from #862 to use this rather than the
version-specific-template.
0 commit comments