This commit is contained in:
parent
48dda7c9ae
commit
7d0543f576
@ -18,7 +18,7 @@
|
||||
mem_per_process="$_core_memory" \
|
||||
max_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo) \
|
||||
max_jobs="$(($max_mem / ($mem_per_process * 1000)))" \
|
||||
test "$_threads" -gt "$max_jobs" && $_threads="$max_jobs" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" \
|
||||
test "$_threads" -gt "$max_jobs" && _threads="$max_jobs" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" \
|
||||
test "$_threads" -le 0 && $_threads=1 && echo "Warning: Do not use the parallel build at all becuse of memory limits" \
|
||||
fi \
|
||||
%global jobs $_threads \
|
||||
|
Loading…
x
Reference in New Issue
Block a user