summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-01-28 23:15:54 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-01-28 23:51:00 -0800
commit2b9bda10d3b7217a30ecb9c9f3eededfcd1f6261 (patch)
tree4df5916045ea928cd4a39be7629f5920e3693850 /eclass/rust-toolchain.eclass
parentvirtual/python-greenlet: Sync KEYWORDS (diff)
downloadgentoo-2b9bda10d3b7217a30ecb9c9f3eededfcd1f6261.tar.gz
gentoo-2b9bda10d3b7217a30ecb9c9f3eededfcd1f6261.tar.bz2
gentoo-2b9bda10d3b7217a30ecb9c9f3eededfcd1f6261.zip
rust-toolchain.eclass: add basic musl support on amd64
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/rust-toolchain.eclass')
-rw-r--r--eclass/rust-toolchain.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass
index 304ee9052457..5126fb96a89d 100644
--- a/eclass/rust-toolchain.eclass
+++ b/eclass/rust-toolchain.eclass
@@ -39,7 +39,8 @@ rust_abi() {
mips64*) echo mips64-unknown-linux-gnuabi64;;
powerpc64le*) echo powerpc64le-unknown-linux-gnu;;
powerpc64*) echo powerpc64-unknown-linux-gnu;;
- x86_64*) echo x86_64-unknown-linux-gnu;;
+ x86_64*gnu) echo x86_64-unknown-linux-gnu;;
+ x86_64*musl) echo x86_64-unknown-linux-musl;;
armv6j*s*) echo arm-unknown-linux-gnueabi;;
armv6j*h*) echo arm-unknown-linux-gnueabihf;;
armv7a*h*) echo armv7-unknown-linux-gnueabihf;;
@@ -103,7 +104,8 @@ rust_arch_uri() {
rust_all_arch_uris()
{
local uris=""
- uris+="amd64? ( $(rust_arch_uri x86_64-unknown-linux-gnu "$@") ) "
+ uris+="amd64? ( elibc_glibc? ( $(rust_arch_uri x86_64-unknown-linux-gnu "$@") )
+ elibc_musl? ( $(rust_arch_uri x86_64-unknown-linux-musl "$@") ) ) "
uris+="arm? ( $(rust_arch_uri arm-unknown-linux-gnueabi "$@")
$(rust_arch_uri arm-unknown-linux-gnueabihf "$@")
$(rust_arch_uri armv7-unknown-linux-gnueabihf "$@") ) "