From 72f74dad49bc80f817842f93c70f2364c9579172 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 24 Apr 2024 12:21:46 +0200 Subject: [PATCH] Allow build on machines without too many CPU Thanks to Santiago Vila for the patch (Closes: #1067714) --- debian/changelog | 10 ++++++++-- debian/rules | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index eb303b72..fdf9ff45 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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. - -- Matthias Klose 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 Wed, 24 Apr 2024 12:21:11 +0200 llvm-toolchain-17 (1:17.0.6-10) unstable; urgency=medium diff --git a/debian/rules b/debian/rules index e49342af..b7aefbc4 100755 --- a/debian/rules +++ b/debian/rules @@ -59,7 +59,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