Re: [ccache] [PATCH] Support for Clang precompiled headers

2012-07-13 Thread Lubos Lunak
On Thursday 12 of July 2012, Joel Rosdahl wrote: On 6 July 2012 19:09, Lubos Lunak l.lu...@suse.cz wrote: the attached patches modify ccache to also support Clang PCH in addition to GCC PCH. Thanks! Regarding 0002-hash-clang-s-.pch-file-explicitly.patch: Why is the third assignment of

Re: [ccache] [PATCH] Support for Clang precompiled headers

2012-07-13 Thread Lubos Lunak
On Friday 13 of July 2012, Lubos Lunak wrote: If somebody would feel like playing with this, note that Clang 3.2 will have -E -Wp,-rewrite-includes, Make that -E -frewrite-includes, looks like upstream has changed that. which only processes #include directives and nothing more (I wrote

Re: [ccache] [PATCH] Support for Clang precompiled headers

2012-07-13 Thread Joel Rosdahl
On 13 July 2012 11:48, Lubos Lunak l.lu...@suse.cz wrote: Right. I guess that was an oversight when I moved the Multiple precompiled headers used error to one place. Fixed version attached. Thanks, applied. -- Joel ___ ccache mailing list

Re: [ccache] [PATCH] Support for Clang precompiled headers

2012-07-12 Thread Joel Rosdahl
On 6 July 2012 19:09, Lubos Lunak l.lu...@suse.cz wrote: the attached patches modify ccache to also support Clang PCH in addition to GCC PCH. Thanks! Regarding 0002-hash-clang-s-.pch-file-explicitly.patch: Why is the third assignment of pch_file done outside the if (stat(pchpath, st) == 0)

[ccache] [PATCH] Support for Clang precompiled headers

2012-07-06 Thread Lubos Lunak
Hello, the attached patches modify ccache to also support Clang PCH in addition to GCC PCH. The changes are: - Clang uses .pch as the extension, not .gch - the .pch file can be directly passed using -include-pch, instead of using -include and trying to find the .pch file - the use of a