Skip to content

Missing RISCV support #397

Closed
Closed

Description

Currently, RISCV support is missing. The target is not recognized and the system compiler is invoked, which will of course fail. Since RISCV is an supported RUST target in stable, I think it would make sense to support this platform.
For my current project on RISCV32, I could add support (at least for GCC) by simply adding:

"riscv32imac-unknown-none-elf" => Some("riscv32-unknown-elf"),

in src/lib.rs:Build::get_base_compiler (around line 1800). I guess for complete support you should add similar lines for:

$ rustup run stable rustc --print target-list | grep risc
riscv32imac-unknown-none-elf
riscv32imc-unknown-none-elf
riscv64gc-unknown-none-elf
riscv64imac-unknown-none-elf

Which would probably be something like:

"riscv32imac-unknown-none-elf" => Some("riscv32-unknown-elf"),
"riscv32imc-unknown-none-elf" => Some("riscv32-unknown-elf"),
"riscv64gc-unknown-none-elf" => Some("riscv64-unknown-elf"),
"riscv64imac-unknown-none-elf" => Some("riscv64-unknown-elf"),

Please note that I didn't test this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions