Add MinGW GCC 4.5.2 include paths, from Matthieu Monrocq

llvm-svn: 127124
This commit is contained in:
Douglas Gregor 2011-03-06 18:00:59 +00:00
parent 69735112d0
commit 189c0e8923
1 changed files with 3 additions and 0 deletions

View 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