forked from OSchip/llvm-project
31b05692cd
Allow to build PCH's (with -building-pch-with-obj and the extra .o file) with -fmodules-codegen -fmodules-debuginfo to allow emitting shared code into the extra .o file, similarly to how it works with modules. A bit of a misnomer, but the underlying functionality is the same. This saves up to 20% of build time here. The patch is fairly simple, it basically just duplicates -fmodules checks to also alternatively check -building-pch-with-obj. This already got committed as |
||
---|---|---|
.. | ||
foo.h | ||
foo.modulemap | ||
use.cpp |