aboutsummaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-06 14:10:50 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-06 14:10:50 -0500
commit595314c62b0344c3c6f862f198d56ab88eb17e0b (patch)
tree5af5cd851765d7a5c3544f3ad98eebac39b8bb3d /env.sh
parent193505ab65719cdb341d297c242be476169316b0 (diff)
Add NINJAJOBS variable to be used with ninja builds.
Diffstat (limited to 'env.sh')
-rw-r--r--env.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/env.sh b/env.sh
index e265628..7587c1e 100644
--- a/env.sh
+++ b/env.sh
@@ -35,6 +35,7 @@ NUMPROCS="$(getconf _NPROCESSORS_ONLN)"
numjobs="$((NUMPROCS * 2 - 1))"
# Make flags for multiple jobs
MAKEFLAGS="-j ${numjobs}"
+NINJAJOBS="${NUMPROCS}"
# Set spinner type (0-12 in funtions.sh)
SPINNER="0"
@@ -43,7 +44,7 @@ SPINNER="0"
TESTERUID="$(id -u)" \
export PS1 LC_ALL LFS LFS_TGT PATH CONFIG_SITE
-export LFS_VER LFS_DISK LFS_FS LFS_PART LFS_PWD NUMPROCS MAKEFLAGS
+export LFS_VER LFS_DISK LFS_FS LFS_PART LFS_PWD NUMPROCS MAKEFLAGS NINJAJOBS
export SPINNER
export TESTERUID