diff options
author | Tim Harder <radhermit@gentoo.org> | 2018-03-03 17:06:41 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2018-03-03 17:10:31 -0500 |
commit | 137b4f65f3a61300c7a952af7ff5a20a26d79f96 (patch) | |
tree | 49b20fdfeecafa6ff7b5aad09613c082be0adb50 /eclass/cargo.eclass | |
parent | sys-apps/miller: Bump to version 5.3.0. (diff) | |
download | gentoo-137b4f65f3a61300c7a952af7ff5a20a26d79f96.tar.gz gentoo-137b4f65f3a61300c7a952af7ff5a20a26d79f96.tar.bz2 gentoo-137b4f65f3a61300c7a952af7ff5a20a26d79f96.zip |
cargo.eclass: respect parallel jobs setting from MAKEOPTS
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r-- | eclass/cargo.eclass | 6 |
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" |