From: Douglas Gregor Date: Sun, 6 Mar 2011 18:00:59 +0000 (+0000) Subject: Add MinGW GCC 4.5.2 include paths, from Matthieu Monrocq X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab0d8bde2d8ab54aae3a0d9fce11f29b3d1d0bb4;p=clang Add MinGW GCC 4.5.2 include paths, from Matthieu Monrocq git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127124 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index dc4078481c..4b1f782dff 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp @@ -534,6 +534,7 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, AddPath("/usr/include/w32api", System, true, false, false); break; case llvm::Triple::MinGW32: + AddPath("/mingw/include", System, true, false, false); AddPath("c:/mingw/include", System, true, false, false); break; default: @@ -582,6 +583,8 @@ AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple) { false, false); AddPath("c:/MinGW/include/c++/4.5.2/backward", CXXSystem, true, false, false); + // Try gcc 4.5.2 (MSYS) + AddMinGWCPlusPlusIncludePaths("/mingw/lib/gcc", "mingw32", "4.5.2"); // Try gcc 4.5.0 AddMinGWCPlusPlusIncludePaths("c:/MinGW/lib/gcc", "mingw32", "4.5.0"); // Try gcc 4.4.0