From 0fb56e50b1e1314d3e5d28ea3c6605296c152aaa Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 26 Jun 2008 08:39:30 +0000 Subject: [PATCH] Make clang work on 32 bit powerpc linux. Patch by Nick Lewycky! llvm-svn: 52777 --- clang/Driver/clang.cpp | 4 ++++ clang/include/clang/AST/TargetBuiltins.h | 1 + 2 files changed, 5 insertions(+) diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 881838507931..c1d4707c5de6 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -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); diff --git a/clang/include/clang/AST/TargetBuiltins.h b/clang/include/clang/AST/TargetBuiltins.h index d0f78444c383..d425a9b8ecad 100644 --- a/clang/include/clang/AST/TargetBuiltins.h +++ b/clang/include/clang/AST/TargetBuiltins.h @@ -11,6 +11,7 @@ #define LLVM_CLANG_AST_TARGET_BUILTINS_H #include "clang/AST/Builtins.h" +#undef PPC namespace clang { /// X86 builtins