mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-24 00:03:02 +00:00
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:
parent
65c9a3d8e5
commit
69aea22462
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user