Allow build on machines without too many CPU Thanks to Santiago Vila for the patch (Closes: #1067714)

This commit is contained in:
Sylvestre Ledru 2024-04-24 12:21:46 +02:00
parent 8b318786ef
commit 72f74dad49
2 changed files with 9 additions and 3 deletions

10
debian/changelog vendored
View File

@ -1,8 +1,14 @@
llvm-toolchain-17 (1:17.0.6-11) UNRELEASED; urgency=medium llvm-toolchain-17 (1:17.0.6-11) unstable; urgency=medium
[ Matthias Klose ]
* Fix libomp symbols file for t64. * Fix libomp symbols file for t64.
-- Matthias Klose <doko@debian.org> Sun, 14 Apr 2024 12:00:52 +0200 [ Sylvestre Ledru ]
* Allow build on machines without too many CPU
Thanks to Santiago Vila for the patch
(Closes: #1067714)
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 24 Apr 2024 12:21:11 +0200
llvm-toolchain-17 (1:17.0.6-10) unstable; urgency=medium llvm-toolchain-17 (1:17.0.6-10) unstable; urgency=medium

2
debian/rules vendored
View File

@ -59,7 +59,7 @@ else
endif endif
NJOBS := $(shell mt=`awk '/^(MemAvail|SwapFree)/ { mt += $$2 } END {print mt}' /proc/meminfo`; \ NJOBS := $(shell mt=`awk '/^(MemAvail|SwapFree)/ { mt += $$2 } END {print mt}' /proc/meminfo`; \
awk -vn=$(NCPUS) -vmt=$$mt -vm=$(MEM_PER_CPU) \ 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}') DH_VERSION := $(shell dpkg -s debhelper | grep '^Version' | awk '{print $$2}')