Less number of threads in builder

This commit is contained in:
Alexey Milovidov 2020-09-02 04:26:35 +03:00
parent d58f6bd7c0
commit 443ed33ab3

2
debian/rules vendored
View File

@ -18,7 +18,7 @@ ifeq ($(CCACHE_PREFIX),distcc)
THREADS_COUNT=$(shell distcc -j)
endif
ifeq ($(THREADS_COUNT),)
THREADS_COUNT=$(shell nproc || grep -c ^processor /proc/cpuinfo || sysctl -n hw.ncpu || echo 4)
THREADS_COUNT=$(shell $$(( $$(nproc || grep -c ^processor /proc/cpuinfo || sysctl -n hw.ncpu || echo 8) / 2 )) )
endif
DEB_BUILD_OPTIONS+=parallel=$(THREADS_COUNT)