[cfe-dev] Mingw-builds mingw-w64 include directories
Nikola Smiljanic
popizdeh at gmail.com
Thu May 22 16:32:02 PDT 2014
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)
Search for thread titled "Clang and (cross-)compilation to [i686,
x86_64]-w64-mingw32" on the mailing list for more info.
On Fri, May 23, 2014 at 8:56 AM, Johan Engelen
<jbc.engelen at swissonline.ch>wrote:
> Hello all,
> 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.
> 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
> [...]/include/c++/4.8.0
> while really this folder is
> [...]/x86_64-w64-mingw32/include/c++
>
> Are you happy to add the following paths to the default list?
> <sysroot>/x86_64-w64-mingw32/include/c++/
> <sysroot>/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32
> <sysroot>/x86_64-w64-mingw32/include/c++/backward
> <sysroot>/i686-w64-mingw32/include/c++/
> <sysroot>/i686-w64-mingw32/include/c++/i686-w64-mingw32
> <sysroot>/i686-w64-mingw32/include/c++/backward
> (the final 3 are a guess, judging from the symmetry in the pathnames that
> clang already searches for)
> This assumes gcc and clang are in <sysroot>/bin.
> I believe it will make life much easier for Windows developers who want to
> give clang a spin.
>
> If so, I will clean up the modifications and submit it for review.
>
> Thanks,
> Johan
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140523/a451cf94/attachment.html>
More information about the cfe-dev
mailing list