From: Stefan Schantl Date: Sat, 26 Dec 2020 17:09:24 +0000 (+0100) Subject: make.sh: Limit ninja to compute paralellism value X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=e1616eb4509bda0f4c892f992c3324980c796ebb make.sh: Limit ninja to compute paralellism value Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index 5b1e949c4e..8dfc8897dd 100755 --- a/make.sh +++ b/make.sh @@ -220,6 +220,9 @@ configure_build() { # Use this as default PARALLELISM DEFAULT_PARALLELISM="${parallelism}" + # Limit lauched ninja build jobs to computed parallel value. + NINJAJOBS="${parallelism}" + # Compression parameters # We use mode 8 for reasonable memory usage when decompressing # but with overall good compression @@ -465,7 +468,7 @@ prepareenv() { # Setup environment set +h LC_ALL=POSIX - export LFS LC_ALL CFLAGS CXXFLAGS DEFAULT_PARALLELISM RUSTFLAGS + export LFS LC_ALL CFLAGS CXXFLAGS DEFAULT_PARALLELISM RUSTFLAGS NINJAJOBS unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD # Make some extra directories