On Sun, Jul 4, 2010 at 16:09, Niels Grewe wrote:
> On Sun, Jul 04, 2010 at 03:39:47PM +0200, Truls Becken wrote:
>> but how is Clang supposed to find headers in these strange places
>> that even include the gcc version number in their paths?
>
> Clang them by maintaining a list in $clang/lib/Frontend/InitHeaderSearch.cpp.
> Gcc 4.5 is probably very recent, so they don‘t have that yet. You can
> just add your directory there and file a bug for it.

Thanks, I would never have guessed. While browsing open bugs for llvm,
I learned that this can also be configured at compile time;

./configure --with-cxx-include-root=/usr/include/c++/4.5.0
--with-cxx-include-arch=i686-pc-linux-gnu"

I successfully used this rather than updating InitHeaderSearch.cpp.
Given that it will only be one or two months until a new version of
gcc is released, I'm not sure I should bother the llvm devs with
bloating the list of directories to keep up with a rolling release
distro.

-Truls

_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to