mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 10:55:18 +00:00
don't abort of cpuinfo has the wrong format
This commit is contained in:
parent
38373bf7fc
commit
7f0123ca42
2
all
2
all
@ -1035,7 +1035,7 @@ case "$cmd" in
|
|||||||
fi
|
fi
|
||||||
if [ -z "$MAKEFLAGS" ]; then
|
if [ -z "$MAKEFLAGS" ]; then
|
||||||
if [ -f /proc/cpuinfo ]; then
|
if [ -f /proc/cpuinfo ]; then
|
||||||
ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
|
ncpus=$((`grep -c '^processor :' /proc/cpuinfo || true`+0))
|
||||||
if [ $ncpus -gt 1 ]; then
|
if [ $ncpus -gt 1 ]; then
|
||||||
MAKEFLAGS=-j$ncpus
|
MAKEFLAGS=-j$ncpus
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user