Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 02 Jun 2020 08:55:23
Message-Id: 1591088096.6d3f2059166f6d8c460c7e60523a3e224438348d.gyakovlev@gentoo
1 commit: 6d3f2059166f6d8c460c7e60523a3e224438348d
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 2 08:44:40 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 2 08:54:56 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3f2059
7
8 cargo.eclass: tc-export AR CC
9
10 Bug: https://bugs.gentoo.org/726428
11 Closes: https://bugs.gentoo.org/726714
12
13 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
14
15 eclass/cargo.eclass | 4 +++-
16 1 file changed, 3 insertions(+), 1 deletion(-)
17
18 diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
19 index 6f7ffdb626b..ad90a0c7dd8 100644
20 --- a/eclass/cargo.eclass
21 +++ b/eclass/cargo.eclass
22 @@ -21,7 +21,7 @@ case ${EAPI} in
23 *) die "EAPI=${EAPI:-0} is not supported" ;;
24 esac
25
26 -inherit multiprocessing
27 +inherit multiprocessing toolchain-funcs
28
29 EXPORT_FUNCTIONS src_unpack src_compile src_install src_test
30
31 @@ -162,6 +162,8 @@ cargo_src_compile() {
32
33 export CARGO_HOME="${ECARGO_HOME}"
34
35 + tc-export AR CC
36 +
37 cargo build $(usex debug "" --release) "$@" \
38 || die "cargo build failed"
39 }