How to write and use chained PCHs
Eli Friedman
eli.friedman at gmail.com
Tue Aug 13 18:01:53 PDT 2013
You might be able to load them... but you won't be able to do anything
useful with them: PCH doesn't include an appropriate semantic model to
avoid issues like the redefinitions you ran into. The correct semantic
model is modules... see http://clang.llvm.org/docs/Modules.html .
-Eli
On Tue, Aug 13, 2013 at 5:49 PM, Yao SHEN <yaoshen at andrew.cmu.edu> wrote:
> 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><eli.friedman at gmail.com>
> wrote:
>
>
> On Tue, Aug 13, 2013 at 5:21 PM, Yao SHEN <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/60add1b0/attachment.html>
More information about the cfe-commits
mailing list