mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
[godot] Fix cpu count in templates script.
This commit is contained in:
parent
ad989bae1e
commit
cd54ced15a
@ -31,7 +31,7 @@ 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
|
||||
|
||||
pushd ../godot
|
||||
@ -110,8 +110,8 @@ elif [ "$platform" = "android" ]; then
|
||||
./gradlew generateGodotTemplates
|
||||
popd
|
||||
elif [ "$platform" = "linux" ]; then
|
||||
echo "Unknown platform: $platform"
|
||||
exit 1
|
||||
scons platform=x11 tools=no target=release bits=64 custom_modules="../spine_godot" --jobs=$cpus
|
||||
scons platform=x11 tools=no target=release_debug bits=64 custom_modules="../spine_godot" --jobs=$cpus
|
||||
else
|
||||
echo "Unknown platform: $platform"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user