commit:     3d08936b268a0b83d91b2085c8588b6e3cbe88bc
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 25 17:24:43 2022 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sun Sep 25 17:25:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d08936b

dev-lang/rust: fix alt-abi support, filter out flto in 1.64.0

Bug: https://bugs.gentoo.org/866231
Closes: https://bugs.gentoo.org/872815
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 dev-lang/rust/{rust-1.64.0.ebuild => rust-1.64.0-r1.ebuild} | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dev-lang/rust/rust-1.64.0.ebuild 
b/dev-lang/rust/rust-1.64.0-r1.ebuild
similarity index 99%
rename from dev-lang/rust/rust-1.64.0.ebuild
rename to dev-lang/rust/rust-1.64.0-r1.ebuild
index 9f7e86a87d56..d506b1ed43fb 100644
--- a/dev-lang/rust/rust-1.64.0.ebuild
+++ b/dev-lang/rust/rust-1.64.0-r1.ebuild
@@ -294,14 +294,13 @@ src_prepare() {
 }
 
 src_configure() {
-       use system-llvm && filter-flags '-flto*' # 
https://bugs.gentoo.org/862109
+       filter-flags '-flto*' # https://bugs.gentoo.org/862109 
https://bugs.gentoo.org/866231
 
        local rust_target="" rust_targets="" arch_cflags use_libcxx="false"
-       local chost_target="$(get_abi_CHOST ${v##*.})"
 
        # Collect rust target names to compile standard libs for all ABIs.
        for v in $(multilib_get_enabled_abi_pairs); do
-               rust_targets+=",\"$(rust_abi ${chost_target})\""
+               rust_targets+=",\"$(rust_abi $(get_abi_CHOST ${v##*.}))\""
        done
        if use wasm; then
                rust_targets+=",\"wasm32-unknown-unknown\""

Reply via email to