mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +08:00
[godot] Fix cpu core count on Linux.
This commit is contained in:
parent
16d41d46b2
commit
ad989bae1e
@ -31,9 +31,11 @@ if [ "$OSTYPE" = "msys" ]; then
|
|||||||
elif [[ "$OSTYPE" = "darwin"* ]]; then
|
elif [[ "$OSTYPE" = "darwin"* ]]; then
|
||||||
cpus=$(sysctl -n hw.logicalcpu)
|
cpus=$(sysctl -n hw.logicalcpu)
|
||||||
else
|
else
|
||||||
cpus=$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')
|
cpus=$(grep -c ^processor /proc/cpuinfo)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "CPUS: $cpus"
|
||||||
|
|
||||||
pushd ../godot
|
pushd ../godot
|
||||||
if [ `uname` == 'Darwin' ] && [ $dev = "false" ]; then
|
if [ `uname` == 'Darwin' ] && [ $dev = "false" ]; then
|
||||||
scons $target arch=x86_64 compiledb=yes custom_modules="../spine_godot" --jobs=$cpus
|
scons $target arch=x86_64 compiledb=yes custom_modules="../spine_godot" --jobs=$cpus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user