[Bf-blender-cvs] [44d79c5] master: patch cmake_linux_install.sh to do multithreaded build
Lawrence D'Oliveiro
noreply at git.blender.org
Thu Feb 27 16:01:13 CET 2014
Commit: 44d79c5ff8b6294d724b78be2bd18562c0be0a19
Author: Lawrence D'Oliveiro
Date: Thu Feb 27 15:59:58 2014 +0100
https://developer.blender.org/rB44d79c5ff8b6294d724b78be2bd18562c0be0a19
patch cmake_linux_install.sh to do multithreaded build
The script ##cmake_linux_install.sh## is currently invoking ##make## in single-threaded mode; this patch changes it to take advantage of all available CPU threads.
Reviewers: mont29
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D358
===================================================================
M build_files/cmake/example_scripts/cmake_linux_install.sh
===================================================================
diff --git a/build_files/cmake/example_scripts/cmake_linux_install.sh b/build_files/cmake/example_scripts/cmake_linux_install.sh
index 6ef5074..34bbe10 100755
--- a/build_files/cmake/example_scripts/cmake_linux_install.sh
+++ b/build_files/cmake/example_scripts/cmake_linux_install.sh
@@ -16,7 +16,7 @@ git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master
-# create cmake dir
+# create build dir
mkdir ~/blender-git/build-cmake
cd ~/blender-git/build-cmake
@@ -25,7 +25,7 @@ cd ~/blender-git/build-cmake
cmake ../blender
# make blender, will take some time
-make
+make -j$(nproc)
# link the binary to blenders source directory to run quickly
ln -s ~/blender-git/build-cmake/bin/blender ~/blender-git/blender/blender.bin
More information about the Bf-blender-cvs
mailing list