-
Notifications
You must be signed in to change notification settings - Fork 878
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
riscv32ima support #1905
Comments
According to https://forge.rust-lang.org/platform-support.html, the |
While we cannot provide In the meantime, have you tried a nightly toolchain to see if that has the target in it? I think it might. $ rustup toolchain install nightly
$ rustup target add --toolchain nightly riscv32imac-unknown-none-elf
$ cargo build --target=riscv32imac-unknown-none-elf
... |
Yes, I've been using the riscv32imac-unknown-none-elf target for a while now, and it's been fantastic. I just want to disable the compressed extension (c in imac), and was hoping either there was an easy way to do this with rustup, or that it was a feature that already existed but just needed to be integrated in. @kinnison By compilers team, do you mean I should bring this up with rustc, or llvm? |
I'd suggest |
It turns out this is relatively straightforward to do (a testament to how nice rust tooling is). For future reference: it was as simple as copying over the json generated from running |
Okay thank you for the information in case someone else comes across this. Good luck. |
I'm trying to compile some rust to an elf with riscv32ima. This target isn't available in rustup, currently. Is there any easy way to add this as a target with rustup? Or generate c or asm that I could compile using gcc?
The text was updated successfully, but these errors were encountered: