summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-03-03 17:06:41 -0500
committerTim Harder <radhermit@gentoo.org>2018-03-03 17:10:31 -0500
commit137b4f65f3a61300c7a952af7ff5a20a26d79f96 (patch)
tree49b20fdfeecafa6ff7b5aad09613c082be0adb50 /eclass
parentsys-apps/miller: Bump to version 5.3.0. (diff)
downloadgentoo-137b4f65f3a61300c7a952af7ff5a20a26d79f96.tar.gz
gentoo-137b4f65f3a61300c7a952af7ff5a20a26d79f96.tar.bz2
gentoo-137b4f65f3a61300c7a952af7ff5a20a26d79f96.zip
cargo.eclass: respect parallel jobs setting from MAKEOPTS
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cargo.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 4bb5954ca31c..799b0618bd25 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -16,6 +16,8 @@ case ${EAPI} in
*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
+inherit multiprocessing
+
EXPORT_FUNCTIONS src_unpack src_compile src_install
IUSE="${IUSE} debug"
@@ -117,7 +119,7 @@ cargo_src_compile() {
export CARGO_HOME="${ECARGO_HOME}"
- cargo build -v $(usex debug "" --release) \
+ cargo build -v -j $(makeopts_jobs) $(usex debug "" --release) \
|| die "cargo build failed"
}
@@ -127,7 +129,7 @@ cargo_src_compile() {
cargo_src_install() {
debug-print-function ${FUNCNAME} "$@"
- cargo install --root="${D}/usr" $(usex debug --debug "") \
+ cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") \
|| die "cargo install failed"
rm -f "${D}/usr/.crates.toml"