[cfe-dev] compiling C++ with clang++

Eric Christopher echristo at apple.com
Tue Mar 2 21:50:37 PST 2010


On Mar 2, 2010, at 7:50 PM, Salman Pervez wrote:

> So I added this line...
> 
>    // Gentoo amd64 stable
>    AddGnuCPlusPlusIncludePaths(
>        "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4",
>        "x86_64-pc-linux-gnu", "", "", triple);
>    AddGnuCPlusPlusIncludePaths(
>        "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include",
>        "x86_64-pc-linux-gnu", "", "", triple);
> 
> Since stddef.h also lives in /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include. Would you suggest I use the patch you sent instead?

Probably if you don't mind giving it a try.  I think we'd rather prefer /usr/include based paths instead of deep inside gcc's includes. Also, that's one is more directly applicable to more machines :)

-eric



More information about the cfe-dev mailing list