From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6C0B51382C5 for ; Sat, 3 Mar 2018 22:11:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD185E0995; Sat, 3 Mar 2018 22:11:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 967BAE0995 for ; Sat, 3 Mar 2018 22:11:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49CB3335C0A for ; Sat, 3 Mar 2018 22:11:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C12F1F1 for ; Sat, 3 Mar 2018 22:11:29 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1520115031.137b4f65f3a61300c7a952af7ff5a20a26d79f96.radhermit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/cargo.eclass X-VCS-Directories: eclass/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 137b4f65f3a61300c7a952af7ff5a20a26d79f96 X-VCS-Branch: master Date: Sat, 3 Mar 2018 22:11:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 37e8f740-a9fc-40eb-9191-cebcbe88667e X-Archives-Hash: b9eedf9b8ff384b174fafc2808edad0f commit: 137b4f65f3a61300c7a952af7ff5a20a26d79f96 Author: Tim Harder gentoo org> AuthorDate: Sat Mar 3 22:06:41 2018 +0000 Commit: Tim Harder gentoo org> CommitDate: Sat Mar 3 22:10:31 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137b4f65 cargo.eclass: respect parallel jobs setting from MAKEOPTS eclass/cargo.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 4bb5954ca31..799b0618bd2 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"