-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. --------- Co-authored-by: rv-jenkins <[email protected]>
- Loading branch information
1 parent
ff5dd2e
commit d80687a
Showing
2 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# RUN: mkdir -p %t | ||
# RUN: llvm-kompile pythonast --python %py-interpreter --python-output-dir %t | ||
# RUN: cd %t | ||
# RUN: PYTHONPATH=. %py-interpreter %s | ||
|
||
import _kllvm |