diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-09-17 13:17:10 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-09-17 13:17:10 +0400 |
commit | 4478197ef6781f143ef39692cda1d82d8e9f5296 (patch) | |
tree | 3c48ee61f183d5b846b82b8157858620cd06fc02 /build_files | |
parent | 1f8ab25993c9a3251074fd996bd7e8dde3dbaaf0 (diff) |
Somplify one-liner for CPU cores detection and make it aware of multi-CPU computers
Diffstat (limited to 'build_files')
-rwxr-xr-x | build_files/build_environment/install_deps.sh | 2 |
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 |