[cfe-commits] r43067 - /cfe/trunk/Driver/Targets.cpp
Chris Lattner
sabre at nondot.org
Tue Oct 16 23:04:46 PDT 2007
Author: lattner
Date: Wed Oct 17 01:04:46 2007
New Revision: 43067
URL: http://llvm.org/viewvc/llvm-project?rev=43067&view=rev
Log:
fix problems with test/sema/Cocoa.m etc on non-apple machines.
Modified:
cfe/trunk/Driver/Targets.cpp
Modified: cfe/trunk/Driver/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Targets.cpp?rev=43067&r1=43066&r2=43067&view=diff
==============================================================================
--- cfe/trunk/Driver/Targets.cpp (original)
+++ cfe/trunk/Driver/Targets.cpp Wed Oct 17 01:04:46 2007
@@ -55,8 +55,12 @@
class DarwinTargetInfo : public TargetInfoImpl {
public:
virtual void getTargetDefines(std::vector<char> &Defs) const {
+// FIXME: we need a real target configuration system. For now, only define
+// __APPLE__ if the host has it.
+#ifdef __APPLE__
Define(Defs, "__APPLE__");
Define(Defs, "__MACH__");
+#endif
if (1) {// -fobjc-gc controls this.
Define(Defs, "__weak", "");
More information about the cfe-commits
mailing list