[cfe-dev] PCH on Qt

Pau Garcia i Quiles pgquiles at elpauer.org
Tue Oct 12 10:01:47 PDT 2010


On Tue, Oct 12, 2010 at 11:41 AM, İsmail Dönmez <ismail at namtrac.org> wrote:
>
>
> On Tue, Oct 12, 2010 at 2:58 AM, Argyrios Kyrtzidis <kyrtzidis at apple.com>
> wrote:
>>
>> Qt uses gcc's PCH directory, where various PCH files (for different
>> languages) are all emitted in a common 'precompiled_header.gch' directory
>> and if you do
>> "-include precompiled_header.h"
>> all PCH files are considered in alphabetical order and the first suitable
>> one is used.
>>
>> Do we want to support that ? It is complicated in our current
>> architecture.
>>
>> A simpler way would be, when adding support for clang compiler in Qt's
>> build system, to inform Qt about clang's PCH way.
>> That would just need a '-include-pch' driver option so that Qt can just
>> pass the PCH file that should be used (currently I "simulate" this using
>> -Xclang -include-pch -Xclang filename).
>
> Just adding a clang specific mkspec to Qt sounds like a better idea.

Already done:

http://gitorious.org/~elcuco/qt/llvm-support

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)




More information about the cfe-dev mailing list