Making install_deps.sh correctly see hyperthreading

This commit is contained in:
Daniel Salazar
2013-09-16 14:38:33 +00:00
parent 7ee94deaf5
commit 0732375d35

View File

@@ -48,7 +48,7 @@ WITH_OPENCOLLADA=false
# Try to link everything statically. Use this to produce portable versions of blender.
ALL_STATIC=false
THREADS=`cat /proc/cpuinfo | grep cores | uniq | sed -e "s/.*: *\(.*\)/\\1/"`
THREADS=`cat /proc/cpuinfo | grep siblings | uniq | sed -e "s/.*: *\(.*\)/\\1/"`
if [ -z "$THREADS" ]; then
THREADS=1
fi