[cfe-dev] compiling C++ with clang++

Christian Adåker cadaker at gmail.com
Wed Mar 3 03:18:36 PST 2010


On Wed, Mar 3, 2010 at 4:35 AM, Eric Christopher <echristo at apple.com> wrote:
>>
>> usr/src/linux-2.6.29/include/linux/stddef.h
>> /usr/include/linux/stddef.h
>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/stddef.h
>>
>
> Hunh. It's amazing anything works on some linux boxes - yours isn't the only one.
>
> Anyhow, new patch. Revert the old one and apply this.

Well, now that we've started talking about Gentoo include paths, I can
offer this patch, if it is of any interest. It's the proper paths for
Gentoo amd64 unstable.

//Christian
-------------- next part --------------
diff --git lib/Frontend/InitHeaderSearch.cpp lib/Frontend/InitHeaderSearch.cpp
index 34cb9ec..a4f2276 100644
--- lib/Frontend/InitHeaderSearch.cpp
+++ lib/Frontend/InitHeaderSearch.cpp
@@ -566,6 +566,11 @@ void InitHeaderSearch::AddDefaultCPlusPlusIncludePaths(const llvm::Triple &tripl
     AddGnuCPlusPlusIncludePaths(
         "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4",
         "i686-pc-linux-gnu", "", "", triple);
+
+    // Gentoo amd64 unstable
+    AddGnuCPlusPlusIncludePaths(
+        "/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4",
+        "x86_64-pc-linux-gnu", "32", "", triple);
     break;
   case llvm::Triple::FreeBSD:
     AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.2", "", "", "", triple);


More information about the cfe-dev mailing list