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

Allow all LLVM versions >= 15 and support dynamic linking #55

Merged
merged 5 commits into from
Nov 13, 2024

Conversation

stuxnot
Copy link
Collaborator

@stuxnot stuxnot commented Jun 19, 2024

Uses more of llvm-sys build.rs to support dynamic linking when static linking is not supported. Additionally, adds the NYXSTONE_LINK_FFI flag, which tells nyxstone that libffi should be linked. This is necessary as LLVM sometimes might be linked against libffi but not report this fact via llvm-config.

Furthermore adds changes to the python setup.py to support dynamic linking in python, when static linking is not supported.

@stuxnot stuxnot requested a review from pkoppe June 19, 2024 11:19
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch from 59bd92d to 1d11e19 Compare June 19, 2024 11:27
@stuxnot stuxnot mentioned this pull request Aug 9, 2024
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch 6 times, most recently from bf12078 to bc045ad Compare August 11, 2024 16:13
@stuxnot stuxnot changed the title Support dynamic linking in rust and python Draft: Bump LLVM to 18 and support dynamic linking Aug 11, 2024
@stuxnot
Copy link
Collaborator Author

stuxnot commented Aug 11, 2024

This is currently blocked by the github ci runners not supporting llvm 18 for some reason. Will have to investigate further.

@stuxnot stuxnot marked this pull request as draft August 12, 2024 07:40
@stuxnot stuxnot changed the title Draft: Bump LLVM to 18 and support dynamic linking Bump LLVM to 18 and support dynamic linking Aug 12, 2024
@stuxnot stuxnot mentioned this pull request Aug 12, 2024
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch 3 times, most recently from 6085386 to 473b681 Compare August 15, 2024 23:13
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch 10 times, most recently from 0f1bc42 to 3805334 Compare October 30, 2024 11:47
Use LLVM version 18 in all build scripts, since it is fully compatible
with the existing LLVM 15 code.
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch from 3805334 to 139b8e2 Compare October 30, 2024 12:30
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch from 139b8e2 to 014cfd1 Compare October 30, 2024 12:42
@stuxnot stuxnot marked this pull request as ready for review October 30, 2024 13:11
@stuxnot
Copy link
Collaborator Author

stuxnot commented Oct 30, 2024

Since the github linux runners do not support llvm > 15 for some godforsaken reason, I've opted to test llvm 16-18 in mac runners.

@stuxnot stuxnot changed the title Bump LLVM to 18 and support dynamic linking Allow all LLVM versions >= 15 and support dynamic linking Oct 30, 2024
@stuxnot stuxnot linked an issue Oct 30, 2024 that may be closed by this pull request
@stuxnot stuxnot self-assigned this Oct 30, 2024
README.md Outdated Show resolved Hide resolved
bindings/python/README.md Outdated Show resolved Hide resolved
bindings/python/setup.py Outdated Show resolved Hide resolved
bindings/python/setup.py Outdated Show resolved Hide resolved
bindings/rust/README.md Outdated Show resolved Hide resolved
bindings/rust/README.md Outdated Show resolved Hide resolved
bindings/rust/build.rs Outdated Show resolved Hide resolved
bindings/rust/build.rs Outdated Show resolved Hide resolved
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch 2 times, most recently from ec10f8a to 64e2261 Compare November 1, 2024 10:41
@stuxnot stuxnot force-pushed the feature/support-dynamic-linking branch from 64e2261 to 2327bcf Compare November 1, 2024 16:05
@pkoppe pkoppe merged commit e0fa780 into main Nov 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update LLVM version
2 participants