How to write and use chained PCHs

Yao SHEN yaoshen at andrew.cmu.edu
Tue Aug 13 17:49:47 PDT 2013


It seems I can use multiple PCH files to parse. I replace #include .h 
with PCH loading in PPCallback. I have successfully loaded multiple PCH 
files in that way.

-Yao

On  Tue, Aug 13, 2013 at 8:27 PM, Eli Friedman 
<eli.friedman at gmail.com> wrote:

> On Tue, Aug 13, 2013 at 5:21 PM, Yao SHEN <yaoshen at andrew.cmu.edu 
> <mailto:yaoshen at andrew.cmu.edu>> wrote:
>
>     I want to try in following way. Would you please check if it is
>     feasible for me?
>
>     1. For each .h file, I generate one PCH file;
>
>
> This is already not feasible.  I mean, you can generate the files, but 
> you can't use multiple PCH files together to compile a .cpp file.
>
> -Eli
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130813/d0df70da/attachment.html>


More information about the cfe-commits mailing list