diff options
author | Yixun Lan <dlan@gentoo.org> | 2021-05-11 21:59:22 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2021-05-13 23:06:31 +0800 |
commit | d71f2fa85b4d6c65bc30e8cd88e7973de05070c1 (patch) | |
tree | a6b1969c2ba231f59634fcf42023b7a856f7686f /eclass | |
parent | dev-perl/Net-Netmask: Add missing RESTRICT (diff) | |
download | gentoo-d71f2fa85b4d6c65bc30e8cd88e7973de05070c1.tar.gz gentoo-d71f2fa85b4d6c65bc30e8cd88e7973de05070c1.tar.bz2 gentoo-d71f2fa85b4d6c65bc30e8cd88e7973de05070c1.zip |
rust: enable support for ARCH=riscv, only for riscv64/lp64d
Bug: https://bugs.gentoo.org/747460
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rust-toolchain.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass index 3301b5f32fe2..64caf3a55559 100644 --- a/eclass/rust-toolchain.eclass +++ b/eclass/rust-toolchain.eclass @@ -50,6 +50,7 @@ rust_abi() { mips*) echo mips-unknown-linux-gnu;; powerpc*) echo powerpc-unknown-linux-gnu;; s390x*) echo s390x-unknown-linux-gnu;; + riscv64*) echo riscv64gc-unknown-linux-gnu;; *) echo ${CTARGET};; esac } @@ -121,5 +122,6 @@ rust_all_arch_uris() $(rust_arch_uri powerpc64le-unknown-linux-gnu "$@") ) " uris+="s390? ( $(rust_arch_uri s390x-unknown-linux-gnu "$@") ) " uris+="abi_x86_32? ( $(rust_arch_uri i686-unknown-linux-gnu "$@") ) " + uris+="riscv? ( $(rust_arch_uri riscv64gc-unknown-linux-gnu "$@") ) " echo "${uris}" } |