You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you, this is very helpful!
Is there a particular reason why this is done or rather why using precompiled headers with a single cpp file is considered 'advanced usage'. I am just wondering if I am missing something here.
While pre-compiled headers can also speedup the compilation of single cpp (for example, if the header files are large), the technique is mostly used to create a shared pre-compiled header for multiple translation units (ie multiple source files). In case of only one source file, you generate more overhead to create the pre-compiled header than you gain from using it. If you are interested, read up on pre-compiled headers and how cotire works.
I have a target
for which cotire does not generate the example_pch target.
As long as there are at least two source files everything works as expected (even if the main.cpp file is just repeated).
I assume this is not the desired behavior?
A example of this (based on cotire-1.8.0) can be created easily:
The text was updated successfully, but these errors were encountered: