<div dir="ltr">Hi Johan, I think that we're trying to move away from logic in InitHeaderSearch. The idea is to implement MinGW toolchain and the same way we have Windows, GCC and other toolchains. Last thing I heard Ruben was working on this (+CC)<div>

<br></div>Search for thread titled "Clang and (cross-)compilation to [i686, x86_64]-w64-mingw32" on the mailing list for more info.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 23, 2014 at 8:56 AM, Johan Engelen <span dir="ltr"><<a href="mailto:jbc.engelen@swissonline.ch" target="_blank">jbc.engelen@swissonline.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
  To make clang++ work (easily) with the latest mingw-w64 builds by the Mingw-build project, I added more paths to the search for default include directories, and it works splendid. See the attached patch.<br>
In short, the issue is that clang is searching for versioned paths, but (at least for the package with gcc4.9.0) the C++ include paths aren't versioned. For example, right now, clang is searching for<br>
  [...]/include/c++/4.8.0<br>
while really this folder is<br>
  [...]/x86_64-w64-mingw32/<u></u>include/c++<br>
<br>
Are you happy to add the following paths to the default list?<br>
<sysroot>/x86_64-w64-mingw32/<u></u>include/c++/<br>
<sysroot>/x86_64-w64-mingw32/<u></u>include/c++/x86_64-w64-mingw32<br>
<sysroot>/x86_64-w64-mingw32/<u></u>include/c++/backward<br>
<sysroot>/i686-w64-mingw32/<u></u>include/c++/<br>
<sysroot>/i686-w64-mingw32/<u></u>include/c++/i686-w64-mingw32<br>
<sysroot>/i686-w64-mingw32/<u></u>include/c++/backward<br>
(the final 3 are a guess, judging from the symmetry in the pathnames that clang already searches for)<br>
This assumes gcc and clang are in <sysroot>/bin.<br>
I believe it will make life much easier for Windows developers who want to give clang a spin.<br>
<br>
If so, I will clean up the modifications and submit it for review.<br>
<br>
Thanks,<br>
  Johan<br>
<br>
<br>_______________________________________________<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" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>