[cfe-commits] support powerpc-linux
Chris Lattner
clattner at apple.com
Wed Jun 25 22:09:08 PDT 2008
On Jun 25, 2008, at 11:12 AM, Nick Lewycky wrote:
> With this patch, clang works on my 32-bit powerpc linux box. The
> first hunk (#undef PPC) fixes a compilation problem where the host
> compiler defines PPC to indicate that we're compiling on a PPC box,
> and that conflicts with namespace PPC declarations in the code. The
> second hunk adds the path to the headers, needed to build at runtime.
>
> (Please commit it, if it passes review. I don't have a clang
> checkout with commit access.)
Looks fine to me, please commit. I can't check it in, because it
isn't an attachment.
-Chris
>
>
> Nick
>
> Index: include/clang/AST/TargetBuiltins.h
> ===================================================================
> --- include/clang/AST/TargetBuiltins.h (revision 52608)
> +++ include/clang/AST/TargetBuiltins.h (working copy)
> @@ -11,6 +11,7 @@
> #define LLVM_CLANG_AST_TARGET_BUILTINS_H
>
> #include "clang/AST/Builtins.h"
> +#undef PPC
>
> namespace clang {
> /// X86 builtins
> Index: Driver/clang.cpp
> ===================================================================
> --- Driver/clang.cpp (revision 52608)
> +++ Driver/clang.cpp (working copy)
> @@ -1033,6 +1033,10 @@
> AddPath("/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include", 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);
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list