]> granicus.if.org Git - clang/commitdiff
Make clang work on 32 bit powerpc linux.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 26 Jun 2008 08:39:30 +0000 (08:39 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 26 Jun 2008 08:39:30 +0000 (08:39 +0000)
Patch by Nick Lewycky!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52777 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp
include/clang/AST/TargetBuiltins.h

index 8818385079319bb86fd78768eb0c52003c0d9503..c1d4707c5de638fe483c7348f42436208f542f03 100644 (file)
@@ -1052,6 +1052,10 @@ static void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
     AddPath("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/include-fixed",
             System, false, false, false, Headers);
 
+    // Debian testing/lenny ppc32
+    AddPath("/usr/lib/gcc/powerpc-linux-gnu/4.2.3/include", System,
+            false, false, false, Headers);
+
     AddPath("/usr/include", System, false, false, false, Headers);
     AddPath("/System/Library/Frameworks", System, true, false, true, Headers);
     AddPath("/Library/Frameworks", System, true, false, true, Headers);
index d0f78444c383811055277338e39d45bb3149f089..d425a9b8ecada649701f8b8fadbab022b71fe673 100644 (file)
@@ -11,6 +11,7 @@
 #define LLVM_CLANG_AST_TARGET_BUILTINS_H
 
 #include "clang/AST/Builtins.h"
+#undef PPC
 
 namespace clang {
   /// X86 builtins