[Lldb-commits] [lldb] r216332 - Resurect preprocessor definitions that got lost moving to HostInfo
Keno Fischer
kfischer at college.harvard.edu
Sat Aug 23 14:40:29 PDT 2014
Author: kfischer
Date: Sat Aug 23 16:40:29 2014
New Revision: 216332
URL: http://llvm.org/viewvc/llvm-project?rev=216332&view=rev
Log:
Resurect preprocessor definitions that got lost moving to HostInfo
When building without XCode on sytems where these constants are
not in the system header (or I presume with older versions of XCode),
these are needed to make this file compile, since unlike most other
uses of MachO specific constants, these use the system headers
rather than the LLVM-defined ones.
Modified:
lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm
Modified: lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm?rev=216332&r1=216331&r2=216332&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm (original)
+++ lldb/trunk/source/Host/macosx/HostInfoMacOSX.mm Sat Aug 23 16:40:29 2014
@@ -30,6 +30,16 @@
#include <mach-o/dyld.h>
#include <objc/objc-auto.h>
+// These are needed when compiling on systems
+// that do not yet have these definitions
+#include <AvailabilityMacros.h>
+#ifndef CPU_SUBTYPE_X86_64_H
+#define CPU_SUBTYPE_X86_64_H ((cpu_subtype_t)8)
+#endif
+#ifndef CPU_TYPE_ARM64
+#define CPU_TYPE_ARM64 (CPU_TYPE_ARM|CPU_ARCH_ABI64)
+#endif
+
using namespace lldb_private;
bool
More information about the lldb-commits
mailing list