Skip to content

Commit

Permalink
games-strategy/0ad: pass JOBS as env var
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/773622
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Mar 1, 2021
1 parent fe2a247 commit 8f24ae8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions games-strategy/0ad/0ad-0.0.24b_alpha.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ src_compile() {
if use nvtt ; then
cd libraries/source/nvtt || die
elog "Building bundled NVTT (bug #768930)"
./build.sh JOBS="-j$(makeopts_jobs)" || die "Failed to build bundled NVTT"
JOBS="-j$(makeopts_jobs)" ./build.sh || die "Failed to build bundled NVTT"
cd "${S}" || die
fi

Expand All @@ -153,12 +153,16 @@ src_compile() {
# e.g. bug #768840.
cd libraries/source/spidermonkey || die
elog "Building bundled SpiderMonkey (bug #768840)"
XARGS="${EPREFIX}/usr/bin/xargs" ./build.sh JOBS="-j$(makeopts_jobs)" || die "Failed to build bundled SpiderMonkey"
XARGS="${EPREFIX}/usr/bin/xargs" \
JOBS="-j$(makeopts_jobs)" \
./build.sh \
|| die "Failed to build bundled SpiderMonkey"

cd "${S}" || die

# Build 0ad itself!
elog "Building 0ad"
emake -C build/workspaces/gcc verbose=1 JOBS="-j$(makeopts_jobs)"
JOBS="-j$(makeopts_jobs)" emake -C build/workspaces/gcc verbose=1

# Build assets
# (We only do this if we're using a snapshot/non-release)
Expand Down

0 comments on commit 8f24ae8

Please sign in to comment.