From ad989bae1e35a3d3c0ba61f87a8ceac33c4c8543 Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 1 Jul 2022 14:40:34 +0200 Subject: [PATCH] [godot] Fix cpu core count on Linux. --- spine-godot/build/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spine-godot/build/build.sh b/spine-godot/build/build.sh index ac3c9761c..fb837f0ed 100755 --- a/spine-godot/build/build.sh +++ b/spine-godot/build/build.sh @@ -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