<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 12, 2010, at 2:41 AM, İsmail Dönmez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font size="2"><font face="tahoma,sans-serif"><br></font></font><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 2:58 AM, Argyrios Kyrtzidis <span dir="ltr"><<a href="mailto:kyrtzidis@apple.com">kyrtzidis@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">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<br>


"-include precompiled_header.h"<br>
all PCH files are considered in alphabetical order and the first suitable one is used.<br>
<br>
Do we want to support that ? It is complicated in our current architecture.<br>
<br>
A simpler way would be, when adding support for clang compiler in Qt's build system, to inform Qt about clang's PCH way.<br>
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).<br></blockquote><div>

<br></div><div>Just adding a clang specific mkspec to Qt sounds like a better idea.</div></div></blockquote><div><br></div><div>Yep, for Qt this is much better.</div><div>I'm mainly asking whether we are interested in supporting PCH directories in general, so that clang can be a drop-in replacement for projects that use them. Though PCH directories doesn't seem to be much popular since there were no complains about not supporting them.</div><br><blockquote type="cite"><div class="gmail_quote"><div><br></div><div>Regards,</div><div>ismail </div></div>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote></div><br></body></html>