Ensure that at least 1 CPU is used for build Thanks to Santiago Vila for the patch (Closes: #1082360)

This commit is contained in:
Sylvestre Ledru 2024-09-20 13:24:21 +02:00
parent ae43dcf022
commit d4cc10bc94
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View File

@ -3,6 +3,9 @@ llvm-toolchain-19 (1:19.1.0-4) UNRELEASED; urgency=medium
[ Sylvestre Ledru ]
* Adjust the workaround for apt.llvm.org version upgrades
https://github.com/llvm/llvm-project/issues/109276
* Ensure that at least 1 CPU is used for build
Thanks to Santiago Vila for the patch
(Closes: #1082360)
[ Matthias Klose ]
* Don't relax versioned shlibs dependencies for snapshot builds and

2
debian/rules vendored
View File

@ -84,7 +84,7 @@ else
endif
NJOBS := $(shell mt=`awk '/^(MemAvail|SwapFree)/ { mt += $$2 } END {print mt}' /proc/meminfo`; \
awk -vn=$(NCPUS) -vmt=$$mt -vm=$(MEM_PER_CPU) \
'END { mt/=1024; n2 = int(mt/m); print n==1 ? 1 : n2<n+1 ? n2 : n+1}' < /dev/null)
'END { mt/=1024; n2 = int(mt/m); print n==1 || n2<=1 ? 1 : n2<=n ? n2 : n }' < /dev/null)
TIME_COMMAND = $(CURDIR)/debian/usage-wrapper.py $(SUMMARY_ONLY) -j $(NJOBS) --base-memory -m 4.0 -o usage-$(notdir $@)-$(DEB_HOST_ARCH).svg
TIME_BIN := $(if $(wildcard /usr/bin/time),/usr/bin/time,/bin/time)