commit: 6d3f2059166f6d8c460c7e60523a3e224438348d Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Tue Jun 2 08:44:40 2020 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Tue Jun 2 08:54:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3f2059
cargo.eclass: tc-export AR CC Bug: https://bugs.gentoo.org/726428 Closes: https://bugs.gentoo.org/726714 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> eclass/cargo.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 6f7ffdb626b..ad90a0c7dd8 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -21,7 +21,7 @@ case ${EAPI} in *) die "EAPI=${EAPI:-0} is not supported" ;; esac -inherit multiprocessing +inherit multiprocessing toolchain-funcs EXPORT_FUNCTIONS src_unpack src_compile src_install src_test @@ -162,6 +162,8 @@ cargo_src_compile() { export CARGO_HOME="${ECARGO_HOME}" + tc-export AR CC + cargo build $(usex debug "" --release) "$@" \ || die "cargo build failed" }