]> granicus.if.org Git - clang/commitdiff
Add MinGW GCC 4.5.2 include paths, from Matthieu Monrocq
authorDouglas Gregor <dgregor@apple.com>
Sun, 6 Mar 2011 18:00:59 +0000 (18:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 6 Mar 2011 18:00:59 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127124 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitHeaderSearch.cpp

index dc4078481c1c2b95cc7efd2b4d5d4f13cd570a4a..4b1f782dfff8b0bf850ef1d1c846a7e99bf3face 100644 (file)
@@ -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