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

Add rustc-codegen-cranelift component to rust-overlay for nightly #142

Closed
benwis opened this issue Oct 29, 2023 · 3 comments
Closed

Add rustc-codegen-cranelift component to rust-overlay for nightly #142

benwis opened this issue Oct 29, 2023 · 3 comments
Labels
question Further information is requested

Comments

@benwis
Copy link

benwis commented Oct 29, 2023

Apologies if there is some way to do this I'm missing, but I'm trying to add rustc-codegen-cranelift as a component, as it's included in the latest nightly. Since it's very new, I don't think it's included.

Can I get that added?

@oxalica oxalica added the question Further information is requested label Oct 30, 2023
@oxalica
Copy link
Owner

oxalica commented Oct 30, 2023

Enabling extensions = [ "rustc-codegen-cranelift" ] should work. But right now, there are some issues upstream that it contains only documentations but no backend DLL. See rust-lang/rust#81746 (comment). The next nightly release since rust-lang/rust#117328 should make it work.

@oxalica
Copy link
Owner

oxalica commented Oct 31, 2023

2023-10-31 is out with the fix. Now this works under master:

rust-bin.nightly."2023-10-31".minimal.override {
  extensions = [ "rustc-codegen-cranelift-preview" ];
}

I verified that rustc -Zcodegen-backend=cranelift compiles and runs flawlessly. 🎉

@oxalica oxalica closed this as completed Oct 31, 2023
@benwis
Copy link
Author

benwis commented Oct 31, 2023

2023-10-31 is out with the fix. Now this works under master:

rust-bin.nightly."2023-10-31".minimal.override {
  extensions = [ "rustc-codegen-cranelift-preview" ];
}

I verified that rustc -Zcodegen-backend=cranelift compiles and runs flawlessly. 🎉

Indeed it does, it works with just rustc-codegen-cranelift as well. Thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants