[cfe-commits] r52777 - in /cfe/trunk: Driver/clang.cpp include/clang/AST/TargetBuiltins.h
Matthijs Kooijman
matthijs at stdin.nl
Thu Jun 26 01:39:30 PDT 2008
Author: matthijs
Date: Thu Jun 26 03:39:30 2008
New Revision: 52777
URL: http://llvm.org/viewvc/llvm-project?rev=52777&view=rev
Log:
Make clang work on 32 bit powerpc linux.
Patch by Nick Lewycky!
Modified:
cfe/trunk/Driver/clang.cpp
cfe/trunk/include/clang/AST/TargetBuiltins.h
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=52777&r1=52776&r2=52777&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Thu Jun 26 03:39:30 2008
@@ -1052,6 +1052,10 @@
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);
Modified: cfe/trunk/include/clang/AST/TargetBuiltins.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TargetBuiltins.h?rev=52777&r1=52776&r2=52777&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TargetBuiltins.h (original)
+++ cfe/trunk/include/clang/AST/TargetBuiltins.h Thu Jun 26 03:39:30 2008
@@ -11,6 +11,7 @@
#define LLVM_CLANG_AST_TARGET_BUILTINS_H
#include "clang/AST/Builtins.h"
+#undef PPC
namespace clang {
/// X86 builtins
More information about the cfe-commits
mailing list