summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-02 01:44:40 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-02 01:54:56 -0700
commit6d3f2059166f6d8c460c7e60523a3e224438348d (patch)
tree0b062274a2b780f0d473fba160bed1cb57b74ca8 /eclass
parentsci-physics/geant: version bump to 10.6_p2 (diff)
downloadgentoo-6d3f2059166f6d8c460c7e60523a3e224438348d.tar.gz
gentoo-6d3f2059166f6d8c460c7e60523a3e224438348d.tar.bz2
gentoo-6d3f2059166f6d8c460c7e60523a3e224438348d.zip
cargo.eclass: tc-export AR CC
Bug: https://bugs.gentoo.org/726428 Closes: https://bugs.gentoo.org/726714 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cargo.eclass4
1 files changed, 3 insertions, 1 deletions
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"
}