[cfe-dev] [PATCH] Add latest libstdc++ header path for Fedora 15

Art Haas ahaas at impactweather.com
Mon Oct 3 13:16:00 PDT 2011


Hi.

The latest Fedora gcc packages are based on GCC-4.6.1, so the following
small patch is needed to help locate header files such as
"<bits/c++config.h>". With this change I can again build SVN clang with
an installed 'clang++' binary built using GCC.

Thanks.

Art Haas

Index: lib/Frontend/InitHeaderSearch.cpp
===================================================================
--- lib/Frontend/InitHeaderSearch.cpp	(revision 141013)
+++ lib/Frontend/InitHeaderSearch.cpp	(working copy)
@@ -714,6 +714,10 @@
     // Redhat based distros.
     //===------------------------------------------------------------------===//
     // Fedora 15
+    AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.1",
+                                "x86_64-redhat-linux", "32", "", triple);
+    AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.1",
+                                "i686-redhat-linux", "", "", triple);
     AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.0",
                                 "x86_64-redhat-linux", "32", "", triple);
     AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.0",



More information about the cfe-dev mailing list