]> granicus.if.org Git - clang/commitdiff
Add some support for RHEL5 systems.
authorEric Christopher <echristo@apple.com>
Tue, 17 May 2011 23:06:53 +0000 (23:06 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 17 May 2011 23:06:53 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131505 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp
lib/Frontend/InitHeaderSearch.cpp

index d0622904576f814f4a7b79df7b6269e02e8a6fad..13e42dae6c8ed8e8638686caa6215d025ba15e7c 100644 (file)
@@ -1380,7 +1380,8 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
                                "4.5.2", "4.5.1", "4.5",
                                "4.4.5", "4.4.4", "4.4.3", "4.4",
                                "4.3.4", "4.3.3", "4.3.2", "4.3",
-                               "4.2.4", "4.2.3", "4.2.2", "4.2.1", "4.2"};
+                               "4.2.4", "4.2.3", "4.2.2", "4.2.1", "4.2",
+                               "4.1.1"};
   std::string Base = "";
   for (unsigned i = 0; i < sizeof(GccVersions)/sizeof(char*); ++i) {
     std::string Suffix = GccTriple + "/" + GccVersions[i];
index 36a81e8256eb319c2e677806ab1dd6e439e6b1fe..22c114ce5ec0c659cd33181a11606c2efa739432 100644 (file)
@@ -744,6 +744,13 @@ AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple) {
                                 "x86_64-redhat-linux", "", "", triple);
     AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.1.2",
                                 "i386-redhat-linux", "", "", triple);
+      
+    // RHEL 5
+    AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.1.1",
+                                "x86_64-redhat-linux", "32", "", triple);
+    AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.1.1",
+                                "i386-redhat-linux", "", "", triple);
+
 
     //===------------------------------------------------------------------===//