[cfe-dev] How to determine clang's system include dirs, to set in ASTVisitor?

Dmitri Gribenko gribozavr at gmail.com
Wed Dec 19 18:04:13 PST 2012


On Thursday, December 20, 2012, Sean Silva wrote:

> Yes, having to hardcode this this is a pain in the ***. Unfortunately,
> it is a pretty nasty problem to solve. Probably the most palatable
> option currently is to embed the headers inside the clang libraries
> (in the binaries) and have it fall back on those if the current
> "hardcoded" lookup fails. But that requires messing around with the
> build system; nobody has stepped up to do that.


And there's also a concern that if someone gets an error message
referencing stddef.h, they might want to actually open and read it.  But
that's impossible if the header is embedded in the executable.

Dmitri



-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121220/730f75c4/attachment.html>


More information about the cfe-dev mailing list