abuild.conf: add CARGO_BUILD_JOBS

Respect the jobs limit for cargo builds by setting CARGO_BUILD_JOBS.

Also bump the default number of jobs to number of cpu cores
This commit is contained in:
Natanael Copa 2021-04-23 09:50:08 +02:00
parent 65c9a3d8e5
commit 69aea22462
1 changed files with 2 additions and 1 deletions

View File

@ -6,9 +6,10 @@ export GOFLAGS="-buildmode=pie"
# Do note that these should work with at least GDC and LDC
export DFLAGS="-Os"
export JOBS=2
export JOBS=$(nproc)
export MAKEFLAGS=-j$JOBS
export SAMUFLAGS=-j$JOBS
export CARGO_BUILD_JOBS=$JOBS
# remove line below to disable colors
USE_COLORS=1