[cfe-users] With regards to Multiple pch files
kyrtzidis at apple.com
Fri Nov 21 16:30:17 PST 2014
Clang can support chained PCHs, for example:
if you have the same order of these header includes:
You can create a PCH file for header1.h, and a chained PCH for header2.h:
You can create and chain different PCH files:
but you cannot mix them, the chained PCH must only be used with the original PCH that it was built with.
There is no DAG configuration for PCHs that is supported, I think the DAG comment may confuse PCHs with the module files system in clang: http://clang.llvm.org/docs/Modules.html
If you are interested in clang modules I’d recommend asking in cfe-dev on how to utilize them, cfe-dev has more traffic than cfe-users.
> Simply put, Does Clang support multiple PCH’s? How can this be taken advantage of? I have been doing some research regarding the use of Multiple PCH files when building a Pre-compiled header. I was hoping to get some clarification with regards to this issue. Imagine a scenario where I want to build a Specific PCH for a specific Scenario. For example one PCH could be specific to a number of functions, and the other would address specific features attributed to a specific characteristic of an item.
> This particular statement caught my attention in one of the discussion boards (https://bugzilla.mozilla.org/show_bug.cgi?id=347592 <https://bugzilla.mozilla.org/show_bug.cgi?id=347592>):
> > Clang does support multiple PCH's per cpp file (the dependency graph can be
> > either a list or a DAG). Given that the vast majority of developers are on
> > Linux or Mac, I'd be quite happy with a solution which required clang.
> I would appreciate some clarification on this topic. Thanks a lot in advance.
> Oludemilade Mujib Raji: Oludemilade.m.raji at intel.com <mailto:Oludemilade.m.raji at intel.com>
> Graphics Software Engineer, Intel
> 1900 Prairie City road
> Folsom, CA 95630
> Work: (916)-356-0351
> cfe-users mailing list
> cfe-users at cs.uiuc.edu <mailto:cfe-users at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users <http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users