[cfe-dev] PCH: separation from source header

Argyrios Kyrtzidis kyrtzidis at apple.com
Thu Sep 23 11:16:49 PDT 2010


On Sep 23, 2010, at 5:39 PM, Sebastian Redl wrote:

> 
> On Sep 23, 2010, at 7:42 AM, Douglas Gregor wrote:
> 
>> 
>> On Sep 23, 2010, at 3:17 AM, Argyrios Kyrtzidis wrote:
>>> I think we should change the cannot-use-PCH errors to warnings and fallback to the source header, and maybe add a command-line option to enable the current behavior (hard errors when PCH can't be used).
>>> Anyone have an objection about this ?
>> 
>> We explicitly didn't do this because the build system should never be telling Clang to use a PCH file if it isn't correct.  However, so long as it's a remappable warning, it would be okay to make this change.
> 
> Note that I'm not quite sure that our current PCH code can handle this. I've been modifying it under the assumption that failed PCH always means failed compilation, and I might have unknowingly done something that relies on it.

We don't have to recover from every PCH error,  just at the point where it verifies that language options/predefines do not conflict.

-Argiris

> 
> Sebastian
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list