summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-12 10:23:31 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-12 10:24:41 -0700
commitf0cecc7b52bd20fbc674e81496008feff72efc8d (patch)
treedbddfb543d901c3432dddd8b3a29ac05200d3f86 /dev-lang/rust
parentdev-lang/gnat-gpl: remove an old version (diff)
downloadgentoo-f0cecc7b52bd20fbc674e81496008feff72efc8d.tar.gz
gentoo-f0cecc7b52bd20fbc674e81496008feff72efc8d.tar.bz2
gentoo-f0cecc7b52bd20fbc674e81496008feff72efc8d.zip
dev-lang/rust: fix cross triple detection
Bug: https://bugs.gentoo.org/679878 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang/rust')
-rw-r--r--dev-lang/rust/rust-1.44.0.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-lang/rust/rust-1.44.0.ebuild b/dev-lang/rust/rust-1.44.0.ebuild
index a0e29a784e93..dba7e9ab61e7 100644
--- a/dev-lang/rust/rust-1.44.0.ebuild
+++ b/dev-lang/rust/rust-1.44.0.ebuild
@@ -327,7 +327,7 @@ src_configure() {
local cross_llvm_target="${cross_target_spec%%:*}"
local cross_triples="${cross_target_spec#*:}"
local cross_rust_target="${cross_triples#*:}"
- local cross_toolchain="${cross_triples%:*}"
+ local cross_toolchain="${cross_triples#:*}"
use llvm_targets_${cross_llvm_target} || die "need llvm_targets_${cross_llvm_target} target enabled"
command -v ${cross_toolchain}-gcc > /dev/null 2>&1 || die "need ${cross_toolchain} cross toolchain"