Ensure that at least 1 CPU is used for build (Closes: #1082359)

This commit is contained in:
Sylvestre Ledru 2024-09-20 13:23:14 +02:00
parent 50fdb56cbe
commit add7f37e23
2 changed files with 8 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-18 (1:18.1.8-12) UNRELEASED; urgency=medium
* Ensure that at least 1 CPU is used for build
(Closes: #1082359)
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 20 Sep 2024 13:22:50 +0200
llvm-toolchain-18 (1:18.1.8-11) unstable; urgency=medium
* Drop ocaml on armhf, ocamlopt disappeared making build ftbfs

2
debian/rules vendored
View File

@ -60,7 +60,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)
DH_VERSION := $(shell dpkg -s debhelper | grep '^Version' | awk '{print $$2}')