This shows you the differences between two versions of the page.
— | devel:turbo_mode_build_option [2016-07-27 11:17] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[turbo_mode]] is a build option that speeds up compile times significantly. | ||
+ | |||
+ | As the one-class-per-file convention is becoming more common in the project, compile times have become uncomfortably long. However, because the preferred code conventions also encourage keeping the global namespace clean, it is possible to merge multiple source files together and build them as one. This is much faster than compiling the files separately because the thousands of lines of C++ headers only need to be processed once. | ||
+ | |||
+ | The CMake option '' | ||
+ | |||
+ | There are a few details and caveats to be aware of: | ||
+ | * When debugging with breakpoints, | ||
+ | * The merging will join all includes separately from the code (see the generated **src_*_turbo.cpp** files). The merging is also configured on a per-directory basis, which means that '' | ||
+ | |||
+ | |||
+ | |||