1
Fork 0

Add support for RISC-V 64-bit GNU/Linux

This commit is contained in:
msizanoen1 2019-11-23 14:22:05 +07:00
parent 38aa6bdfd7
commit b830b673e7
7 changed files with 26 additions and 4 deletions

View file

@ -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::*;