summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-04-24 00:50:06 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-04-27 04:51:54 -0700
commit47ccbd74994d1f241bc020582deece40f4ac5f28 (patch)
treea0ce4546486694f9bda841079c42ecf1103beb80 /eclass
parentdev-lang/rust: drop old (diff)
downloadgentoo-47ccbd74994d1f241bc020582deece40f4ac5f28.tar.gz
gentoo-47ccbd74994d1f241bc020582deece40f4ac5f28.tar.bz2
gentoo-47ccbd74994d1f241bc020582deece40f4ac5f28.zip
eclass/rust-toolchain.eclass: add support for arm64 musl tarballs
Bug: https://bugs.gentoo.org/771006 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/rust-toolchain.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass
index ad670d0cb315..35e13e3de97b 100644
--- a/eclass/rust-toolchain.eclass
+++ b/eclass/rust-toolchain.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: rust-toolchain.eclass
@@ -110,7 +110,8 @@ rust_all_arch_uris()
uris+="arm? ( $(rust_arch_uri arm-unknown-linux-gnueabi "$@")
$(rust_arch_uri arm-unknown-linux-gnueabihf "$@")
$(rust_arch_uri armv7-unknown-linux-gnueabihf "$@") ) "
- uris+="arm64? ( $(rust_arch_uri aarch64-unknown-linux-gnu "$@") ) "
+ uris+="arm64? ( elibc_glibc? ( $(rust_arch_uri aarch64-unknown-linux-gnu "$@") )
+ elibc_musl? ( $(rust_arch_uri aarch64-unknown-linux-musl "$@") ) ) "
uris+="mips? ( $(rust_arch_uri mips-unknown-linux-gnu "$@")
$(rust_arch_uri mipsel-unknown-linux-gnu "$@")
$(rust_arch_uri mips64-unknown-linux-gnuabi64 "$@") ) "