mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
make.sh: Limit ninja to compute paralellism value
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
9c51467d05
commit
e1616eb450
5
make.sh
5
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
|
||||
|
||||
Reference in New Issue
Block a user