mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-27 09:50:53 +00:00
* Also use the free swap to determine the number of parallel processes.
This commit is contained in:
parent
6297fd36b2
commit
34ed134da1
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -18,6 +18,7 @@ llvm-toolchain-snapshot (1:18~++20230921012857+4cf8da94198d-1~exp1) UNRELEASED;
|
|||||||
* libclang1-18: Only encode the major version in the soname. See #1056126.
|
* libclang1-18: Only encode the major version in the soname. See #1056126.
|
||||||
* Restore the patch for D148945, searching /usr/lib/llvm-18/lib by default.
|
* Restore the patch for D148945, searching /usr/lib/llvm-18/lib by default.
|
||||||
Addresses: #1056580.
|
Addresses: #1056580.
|
||||||
|
* Also use the free swap to determine the number of parallel processes.
|
||||||
|
|
||||||
[ John Paul Adrian Glaubitz ]
|
[ John Paul Adrian Glaubitz ]
|
||||||
* Don't install *clang_rt* on sparc and sparc64
|
* Don't install *clang_rt* on sparc and sparc64
|
||||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -53,7 +53,7 @@ ifneq (,$(filter flang-$(LLVM_VERSION), $(packages)))
|
|||||||
else
|
else
|
||||||
MEM_PER_CPU=2100
|
MEM_PER_CPU=2100
|
||||||
endif
|
endif
|
||||||
NJOBS := $(shell mt=`awk '/^MemTotal/ { print $$2 }' /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 ? 1 : n2<n+1 ? n2 : n+1}' < /dev/null)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user