From 69aea2246288c37b7f2961d7a31983465eb925a5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 23 Apr 2021 09:50:08 +0200 Subject: [PATCH] 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 --- abuild.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abuild.conf b/abuild.conf index fc61f26..4ff34f1 100644 --- a/abuild.conf +++ b/abuild.conf @@ -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