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

Fix llvm-kompile pythonast #1047

Merged
merged 3 commits into from
May 8, 2024
Merged

Fix llvm-kompile pythonast #1047

merged 3 commits into from
May 8, 2024

Conversation

Baltoli
Copy link
Contributor

@Baltoli Baltoli commented May 8, 2024

This PR addresses an issue experienced by @gtrepta and @theo25 where the Python AST bindings for the LLVM backend incorrectly reference runtime symbols like FIRST_INJ_TAG when loaded.

The solution is pretty straightforward; rather than trying to rely on the linker implicitly stripping out undefined symbols when the library is built, we just split the components into two parts (runtime and non-runtime) and selectively include them.

The test case added in 0eb1d7f fails before the script is amended.

@rv-jenkins rv-jenkins changed the base branch from master to develop May 8, 2024 10:51
Copy link
Contributor

@gtrepta gtrepta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested the pyk integration tests with this change?

@Baltoli
Copy link
Contributor Author

Baltoli commented May 8, 2024

Yep, they're all good.

@rv-jenkins rv-jenkins merged commit d80687a into develop May 8, 2024
9 checks passed
@rv-jenkins rv-jenkins deleted the fix-pythonast branch May 8, 2024 22:02
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.

3 participants