mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
make.sh: Use all processor cores for compression
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
3
make.sh
3
make.sh
@@ -866,8 +866,9 @@ if [ ${HOST_MEM} -lt 1024 ]; then
|
||||
exiterror "You will need more than 1GB or host memory to run the build"
|
||||
fi
|
||||
|
||||
# We compress archives with "xz -8", using all cores and up to 70% of memory
|
||||
XZ_MEM="$(( HOST_MEM * 7 / 10 ))MiB"
|
||||
XZ_OPT="-T4 -8 --memory=$XZ_MEM"
|
||||
XZ_OPT="-T$(system_processors) -8 --memory=${XZ_MEM}"
|
||||
|
||||
if [ -n "${BUILD_ARCH}" ]; then
|
||||
configure_build "${BUILD_ARCH}"
|
||||
|
||||
Reference in New Issue
Block a user