From 4478197ef6781f143ef39692cda1d82d8e9f5296 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 17 Sep 2013 09:17:10 +0000 Subject: Somplify one-liner for CPU cores detection and make it aware of multi-CPU computers --- build_files/build_environment/install_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_files') 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 -- cgit v1.2.3