Merge lp:~jpakkane/unity/pch-experiment into lp:unity
|Rejected by:||Jussi Pakkanen on 2012-12-18|
|Diff against target:||
169 lines (+114/-3)
5 files modified
|To merge this branch:||bzr merge lp:~jpakkane/unity/pch-experiment|
Description of the Change
Do NOT merge this code as is! It is only a proof of concept. It will compile and run but the end result will not work properly, because I had to change some definitions.
That being said, this patch adds support for GCC precompiled headers, which cuts down compile times quite nicely. To try it out, just check out and configure. Then run 'time make unity-core-6.0'. There is a CMake option for compiling with or without PCH. Just toggle that and run 'make clean' and then the previous command to compare build times.
On my machine building in debug mode without PCH takes 1m 50s. Enabling PCH drops that to 1 minute.
To get this merged, the build system needs a changes (which would be good even by themselves), enabling PCH for all targets and probably some general cleanup. None of these are massive tasks, though.