Compiling (Speeding up): Difference between revisions
Renatorivo (talk | contribs) mNo edit summary |
Kkremitzki (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
Use make -j # to specify the number of jobs. A suggested value is your number of computer cores, e.g. |
Use make -j # to specify the number of jobs. A suggested value is your number of computer cores, e.g. |
||
<pre>make -j $(nproc)</pre> |
<pre>make -j $(nproc)</pre> |
||
=== distcc === |
|||
Distcc can be used for distributed compilation on a network. |
|||
<!--T:5--> |
<!--T:5--> |
Revision as of 03:07, 24 March 2017
When developing FreeCAD one needs to build from source and the compiling/build phase can start eating in to precious development time. Here are some tips to shorten that process and make build times more efficient.
CCache
Install ccache to cache builds
Disable Modules
Use cmake-curses-gui, cmake-qt-gui, or cmake flags to disable modules you aren't working on
make -j
Use make -j # to specify the number of jobs. A suggested value is your number of computer cores, e.g.
make -j $(nproc)
distcc
Distcc can be used for distributed compilation on a network.