Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-09-17 13:17:10 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-09-17 13:17:10 +0400
commit4478197ef6781f143ef39692cda1d82d8e9f5296 (patch)
tree3c48ee61f183d5b846b82b8157858620cd06fc02 /build_files
parent1f8ab25993c9a3251074fd996bd7e8dde3dbaaf0 (diff)
Somplify one-liner for CPU cores detection and make it aware of multi-CPU computers
Diffstat (limited to 'build_files')
-rwxr-xr-xbuild_files/build_environment/install_deps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh
index d6299733190..ffbbd3999fe 100755
--- a/build_files/build_environment/install_deps.sh
+++ b/build_files/build_environment/install_deps.sh
@@ -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 siblings | uniq | sed -e "s/.*: *\(.*\)/\\1/"`
+THREADS=`cat /proc/cpuinfo | grep processor | wc -l`
if [ -z "$THREADS" ]; then
THREADS=1
fi