From 946ed6e494ac31b93bc6106a09cdca3a4f2af750 Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Mon, 21 May 2018 17:50:53 +0800 Subject: [PATCH] dev-util/bazel: make build respect MAKEOPTS Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- dev-util/bazel/bazel-0.13.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-util/bazel/bazel-0.13.0.ebuild b/dev-util/bazel/bazel-0.13.0.ebuild index 5a238c7915f..c681ead6823 100644 --- a/dev-util/bazel/bazel-0.13.0.ebuild +++ b/dev-util/bazel/bazel-0.13.0.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit bash-completion-r1 java-pkg-2 +inherit bash-completion-r1 java-pkg-2 multiprocessing DESCRIPTION="Fast and correct automated build system" HOMEPAGE="http://bazel.io/" @@ -36,11 +36,13 @@ src_compile() { # R: /proc/24939/setgroups # C: /usr/lib/systemd/systemd addpredict /proc + export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs)" VERBOSE=yes ./compile.sh || die # Use standalone strategy to deactivate the bazel sandbox, since it # conflicts with FEATURES=sandbox. echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \ > "${T}/bazelrc" || die + echo "build --jobs=$(makeopts_jobs)" >> "${T}/bazelrc" || die output/bazel --bazelrc="${T}/bazelrc" build scripts:bazel-complete.bash || die mv bazel-bin/scripts/bazel-complete.bash output/ || die } -- 2.16.1