diff options
author | 2021-04-05 21:47:35 +0200 | |
---|---|---|
committer | 2021-04-05 21:52:48 +0200 | |
commit | 6cc511bb59b6723291678e2ad20fc67f9af785e4 (patch) | |
tree | 3c7cb4f5bfcca581cb0979b88b0e119be431c430 /eclass | |
parent | eclass: Copy rust-toolchain.eclass from main tree (diff) | |
download | dilfridge-6cc511bb59b6723291678e2ad20fc67f9af785e4.tar.gz dilfridge-6cc511bb59b6723291678e2ad20fc67f9af785e4.tar.bz2 dilfridge-6cc511bb59b6723291678e2ad20fc67f9af785e4.zip |
rust-toolchain.eclass: add best guesses for riscv64
Signed-off-by: Andreas K. Hüttel <dilfridge@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 ad670d0..f24ae3c 100644 --- a/eclass/rust-toolchain.eclass +++ b/eclass/rust-toolchain.eclass @@ -49,6 +49,7 @@ rust_abi() { mipsel*) echo mipsel-unknown-linux-gnu;; mips*) echo mips-unknown-linux-gnu;; powerpc*) echo powerpc-unknown-linux-gnu;; + riscv64*) echo riscv64gc-unknown-linux-gnu;; s390x*) echo s390x-unknown-linux-gnu;; *) echo ${CTARGET};; esac @@ -117,6 +118,7 @@ rust_all_arch_uris() uris+="ppc? ( $(rust_arch_uri powerpc-unknown-linux-gnu "$@") ) " uris+="ppc64? ( $(rust_arch_uri powerpc64-unknown-linux-gnu "$@") $(rust_arch_uri powerpc64le-unknown-linux-gnu "$@") ) " + uris+="riscv? ( $(rust_arch_uri riscv64gc-unknown-linux-gnu "$@") ) " uris+="s390? ( $(rust_arch_uri s390x-unknown-linux-gnu "$@") ) " uris+="abi_x86_32? ( $(rust_arch_uri i686-unknown-linux-gnu "$@") ) " echo "${uris}" |