Add support for RISC-V 64-bit GNU/Linux
This commit is contained in:
parent
38aa6bdfd7
commit
b830b673e7
7 changed files with 26 additions and 4 deletions
|
@ -878,6 +878,7 @@ pub mod consts {
|
|||
/// - mips64
|
||||
/// - powerpc
|
||||
/// - powerpc64
|
||||
/// - riscv64
|
||||
/// - s390x
|
||||
/// - sparc64
|
||||
#[stable(feature = "env", since = "1.0.0")]
|
||||
|
@ -1035,6 +1036,11 @@ mod arch {
|
|||
pub const ARCH: &'static str = "hexagon";
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "riscv64")]
|
||||
mod arch {
|
||||
pub const ARCH: &'static str = "riscv64";
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue