4 Jul
2020
4 Jul
'20
10:19 a.m.
A precompiled header is a combination of a plain header with a companion special file (.pch/.gch). The companion file is generated from a source file that is designated as the Precompiled Header creator ('/Yc' on MSVC). Every other source file is told to use the special file ('/Yu' on MSVC), the source file compilation will fail if the special file is missing. CPython/third party runtimes will only need to ship this special file with the compiled code, the only downside is a burden of checking the checksum of the file before it's used in a compile process.