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

Full abi compatibilty #1131

Merged
merged 16 commits into from
Jan 30, 2021
Merged

Full abi compatibilty #1131

merged 16 commits into from
Jan 30, 2021

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Jan 30, 2021

This fixes several cases of crashes when interfacing with C code. In addition this will make it possible to build dependencies using cg_llvm with optimizations and only build the user program using cg_clif. While I haven't yet added support to the build system for this, I have manually confirmed that building simple-raytracer against the cg_llvm sysroot works. (albeit resulting in a somewhat slower executable for some reason) I have also confirmed that linking bevymark against a cg_llvm compiled bevy works.

Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/10. This is the oldest currently open issue and the last open issue I assigned to the MVP milestone back in August 2018.

Should help with https://github.com/bjorn3/rustc_codegen_cranelift/issues/381
Should help with https://github.com/bjorn3/rustc_codegen_cranelift/issues/977
Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/1092
Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/1129

@bjorn3 bjorn3 added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-abi Area: ABI handling labels Jan 30, 2021
@bjorn3 bjorn3 merged commit 18de1b1 into master Jan 30, 2021
@bjorn3 bjorn3 deleted the abi_compat branch January 30, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-abi Area: ABI handling C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support imgui related abi Link against libraries compiled by rustc C abi compatability
1 participant