summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@anongoth.pl>2024-08-06 14:31:27 +0200
committerSam James <sam@gentoo.org>2024-08-07 04:03:18 +0100
commit1a17266f16d4fbd2116611777a3c77f2db31bc8b (patch)
treec2e81ea73d810fa8357e97e58d66d80901f3e586 /eclass/rust-toolchain.eclass
parentdev-libs/npth: Stabilize 1.7-r1 arm64, #937455 (diff)
downloadgentoo-1a17266f16d4fbd2116611777a3c77f2db31bc8b.tar.gz
gentoo-1a17266f16d4fbd2116611777a3c77f2db31bc8b.tar.bz2
gentoo-1a17266f16d4fbd2116611777a3c77f2db31bc8b.zip
rust-toolchain.eclass: add powerpc*musl support
Also adjust indentation. [sam: Note that this is easier to review with `git diff -w`.] Signed-off-by: Piotr Kubaj <pkubaj@anongoth.pl> Closes: https://github.com/gentoo/gentoo/pull/35928 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/rust-toolchain.eclass')
-rw-r--r--eclass/rust-toolchain.eclass43
1 files changed, 23 insertions, 20 deletions
diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass
index 111aece796ce..469479b849b3 100644
--- a/eclass/rust-toolchain.eclass
+++ b/eclass/rust-toolchain.eclass
@@ -31,26 +31,29 @@ esac
rust_abi() {
local CTARGET=${1:-${CHOST}}
case ${CTARGET%%*-} in
- aarch64*gnu) echo aarch64-unknown-linux-gnu;;
- aarch64*musl) echo aarch64-unknown-linux-musl;;
- armv6j*h*) echo arm-unknown-linux-gnueabihf;;
- armv6j*s*) echo arm-unknown-linux-gnueabi;;
- armv7a*h*) echo armv7-unknown-linux-gnueabihf;;
- i?86*) echo i686-unknown-linux-gnu;;
- loongarch64*) echo loongarch64-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;;
- powerpc64le*) echo powerpc64le-unknown-linux-gnu;;
- powerpc64*) echo powerpc64-unknown-linux-gnu;;
- powerpc*) echo powerpc-unknown-linux-gnu;;
- riscv64*gnu) echo riscv64gc-unknown-linux-gnu;;
- riscv64*musl) echo riscv64gc-unknown-linux-musl;;
- s390x*) echo s390x-unknown-linux-gnu;;
- x86_64*gnu) echo x86_64-unknown-linux-gnu;;
- x86_64*musl) echo x86_64-unknown-linux-musl;;
- *) echo ${CTARGET};;
+ aarch64*gnu) echo aarch64-unknown-linux-gnu;;
+ aarch64*musl) echo aarch64-unknown-linux-musl;;
+ armv6j*h*) echo arm-unknown-linux-gnueabihf;;
+ armv6j*s*) echo arm-unknown-linux-gnueabi;;
+ armv7a*h*) echo armv7-unknown-linux-gnueabihf;;
+ i?86*) echo i686-unknown-linux-gnu;;
+ loongarch64*) echo loongarch64-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;;
+ powerpc64le*gnu) echo powerpc64le-unknown-linux-gnu;;
+ powerpc64le*musl) echo powerpc64le-unknown-linux-musl;;
+ powerpc64*gnu) echo powerpc64-unknown-linux-gnu;;
+ powerpc64*musl) echo powerpc64-unknown-linux-musl;;
+ powerpc*gnu) echo powerpc-unknown-linux-gnu;;
+ powerpc*musl) echo powerpc-unknown-linux-musl;;
+ riscv64*gnu) echo riscv64gc-unknown-linux-gnu;;
+ riscv64*musl) echo riscv64gc-unknown-linux-musl;;
+ s390x*) echo s390x-unknown-linux-gnu;;
+ x86_64*gnu) echo x86_64-unknown-linux-gnu;;
+ x86_64*musl) echo x86_64-unknown-linux-musl;;
+ *) echo ${CTARGET};;
esac
}