-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pydrake: Modules should be compiled with hidden symbols #8433
Comments
I suspect that we should also promote |
Gotcha. Seems that I need to inline / hide this class: Will see if I can update those flags. |
Refer to #16756 for a nice trick. We can set hidden visibility on an entire Drake namespace, instead of fighting with With the attribute, symbols used within the file but not in the pydrake namespace can still be hidden (or not) per their original declarations. With the namespace pydrake __attribute__ ((visibility ("hidden"))) {
...
} // namespace pydrake |
I think this is probably still worth doing, but in terms of scheduling my plan is to do the module flattening first (so that we have fewer python shared libraries -- most likely just one), at which point it should be less of a hassle to get this right. |
See also #18677. It adds the warning flag, and provides a nice macro for the namespace-level visibility control. |
The text was updated successfully, but these errors were encountered: