diff options
author | WANG Xuerui <xen0n@gentoo.org> | 2023-05-31 15:30:29 +0800 |
---|---|---|
committer | WANG Xuerui <xen0n@gentoo.org> | 2023-07-20 17:48:26 +0800 |
commit | 5c64aefe2d70d15543535c52204a9b20bd471cd9 (patch) | |
tree | e347abacd5c2424af1a49b37514d85259e327917 /eclass | |
parent | rust-toolchain.eclass: cosmetic cleanups (diff) | |
download | gentoo-5c64aefe2d70d15543535c52204a9b20bd471cd9.tar.gz gentoo-5c64aefe2d70d15543535c52204a9b20bd471cd9.tar.bz2 gentoo-5c64aefe2d70d15543535c52204a9b20bd471cd9.zip |
rust-toolchain.eclass: add support for mips64el platforms
Right now mips64el systems are treated as mips64 (big-endian) in the
rust_abi helper, that prevents installation of rust. Fix by checking for
mips64el before mips64.
See: https://github.com/gentoo/gentoo/pull/31241
Signed-off-by: WANG Xuerui <xen0n@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 ef4b2a91ef7d..c9c0886009a2 100644 --- a/eclass/rust-toolchain.eclass +++ b/eclass/rust-toolchain.eclass @@ -40,6 +40,7 @@ rust_abi() { armv6j*s*) echo arm-unknown-linux-gnueabi;; armv7a*h*) echo armv7-unknown-linux-gnueabihf;; i?86*) echo i686-unknown-linux-gnu;; + mips64el*) echo mips64el-unknown-linux-gnuabi64;; mips64*) echo mips64-unknown-linux-gnuabi64;; mipsel*) echo mipsel-unknown-linux-gnu;; mips*) echo mips-unknown-linux-gnu;; @@ -124,6 +125,7 @@ rust_all_arch_uris() $(rust_arch_uri mips-unknown-linux-gnu "$@") $(rust_arch_uri mipsel-unknown-linux-gnu "$@") $(rust_arch_uri mips64-unknown-linux-gnuabi64 "$@") + $(rust_arch_uri mips64el-unknown-linux-gnuabi64 "$@") ) ppc? ( $(rust_arch_uri powerpc-unknown-linux-gnu "$@") ) ppc64? ( |