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

Link LLVM initialization functions #4

Merged
merged 4 commits into from Sep 17, 2018
Merged

Link LLVM initialization functions #4

merged 4 commits into from Sep 17, 2018

Conversation

termoshtt
Copy link
Contributor

rustc-llvm-proxy cannot link llvm_sys::target::LLVM_InitializeAllTargets and other initialization function listed at https://github.com/tari/llvm-sys.rs/blob/36cdcf413a0f452ffb0c7c7ba7dd5954b0a59214/src/target.rs#L169.

LLVM C API defines initialization APIs as , e.g. LLVMInitializeAllTargets as static inline functions, and these symbols does not exist in the shared library. llvm-sys/wrapper/target.c create public ABI of these functions to call from Rust. However, this way cannot be used with this crate because it needs to compile C code (target.c) with the LLVM library.

I re-implement these as rust code.

@denzp denzp merged commit 8445e7a into denzp:master Sep 17, 2018
@denzp
Copy link
Owner

denzp commented Sep 17, 2018

Thanks for the changes! Published in 0.1.4.

@termoshtt termoshtt deleted the init branch December 31, 2019 10:42
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.

None yet

2 participants