Topic: How to compile faster?
kaputtnik Topic Opener |
Posted at: 2015-12-02, 08:02
When compiling via compile.sh it tooks more then half an hour to compile on my computer. Half an hour is the time depending on a fresh download. Once it is compiled recompiling gets a bit faster. Is there a way to make compiling faster for test purposes? I tried to use ninja, but it fails when compiling. Fight simulator for Widelands: |
Tmk |
Posted at: 2015-12-02, 14:54
You could extend the Edited: 2015-12-02, 14:56
Top Quote |
Tibor |
Posted at: 2015-12-03, 20:23
Because second time it compiles only changed files - if any
Why it failed - not enough RAM? I have 4 GB RAM and am not able to compile with ninja... Top Quote |
kaputtnik Topic Opener |
Posted at: 2015-12-03, 20:36
I have about 3Gb... Thanks Tmk, but this will not increase the speed on my system. Fight simulator for Widelands: |
GunChleoc |
Posted at: 2015-12-03, 20:42
You could try this: https://ccache.samba.org/ I have never set this up myself though. Busy indexing nil values Top Quote |
QCS |
Posted at: 2015-12-04, 09:48
ccache will help compiling the same compilation again, as if you are doing "ninja clean && ninja" (or the same with "make" instead of "ninja", depending on your flavour). It will not help compiling faster after git pull or manual modifications to source files and doing "ninja" or "make" like in development situations, as it is not the "same compilation" usually. Other than that, ccache is a real PITA, causing linking errors you can not explain and having to remove the whole cache to solve. What could help you would be a distcc setup if you have a decent machine not capable of playing widelands but aiding you as compilation workhorse. CMake is evil. Top Quote |