|
|
|
|
|
by ndesaulniers
524 days ago
|
|
I had an intern try to use precompiled headers for the Linux kernel. The road block they found was that the command line parameters used to compile the header must exactly match for all translation units which it is used. This is no the case for the Linux kernel. We could compile the header multiple times, but the build complexity was not something we could overcome during the course of one internship. |
|
Yup. My compiler kept a list of which switches would perturb compilation and so would invalidate the precompiled header, and which did not.
Precompiled headers are an awful, desperate feature. Good riddance.