[godot] Fix cpu core count on Linux.

This commit is contained in:
badlogic 2022-07-01 14:40:34 +02:00
parent 16d41d46b2
commit ad989bae1e

View File

@ -31,9 +31,11 @@ if [ "$OSTYPE" = "msys" ]; then
elif [[ "$OSTYPE" = "darwin"* ]]; then
cpus=$(sysctl -n hw.logicalcpu)
else
cpus=$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')
cpus=$(grep -c ^processor /proc/cpuinfo)
fi
echo "CPUS: $cpus"
pushd ../godot
if [ `uname` == 'Darwin' ] && [ $dev = "false" ]; then
scons $target arch=x86_64 compiledb=yes custom_modules="../spine_godot" --jobs=$cpus