Skip to content
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

Build Python bindings with -fvisibility=hidden #818

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

Baltoli
Copy link
Contributor

@Baltoli Baltoli commented Jul 28, 2023

The change required here is smaller than discussed yesterday in the K meeting; the underlying issue was actually just that our build system wasn't adding a compiler flag that's required for py::module_local() to work properly.

Reference from the docs (different error, but contains the instruction to make sure that you're passing this flag): https://pybind11.readthedocs.io/en/stable/faq.html#someclass-declared-with-greater-visibility-than-the-type-of-its-field-someclass-member-wattributes

This PR adds that flag; I have verified that K built using this modified backend fixes my reproduction code from runtimeverification/pyk#551

Fixes runtimeverification/pyk#551

@Baltoli Baltoli marked this pull request as ready for review July 28, 2023 13:03
@Baltoli Baltoli changed the title Pass suffix through to python bindings build Build Python bindings with -fvisibility=hidden Jul 28, 2023
@rv-jenkins rv-jenkins merged commit 45ddd54 into master Jul 28, 2023
6 checks passed
@rv-jenkins rv-jenkins deleted the runtime-suffix branch July 28, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InternalTerm is re-registered
3 participants