diff options
| author | Keno Fischer <kfischer@college.harvard.edu> | 2014-08-23 21:40:29 +0000 |
|---|---|---|
| committer | Keno Fischer <kfischer@college.harvard.edu> | 2014-08-23 21:40:29 +0000 |
| commit | 5777edf05c5f0fe3bdccd7cf09a49d269b7c4f37 (patch) | |
| tree | c355f9a5c558ff756ea5f4d5413ba7934235ab63 | |
| parent | 63f9b571476b7afbb794296fc70c7fb726809dd0 (diff) | |
| download | bcm5719-llvm-5777edf05c5f0fe3bdccd7cf09a49d269b7c4f37.tar.gz bcm5719-llvm-5777edf05c5f0fe3bdccd7cf09a49d269b7c4f37.zip | |
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.
llvm-svn: 216332
| -rw-r--r-- | lldb/source/Host/macosx/HostInfoMacOSX.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Host/macosx/HostInfoMacOSX.mm b/lldb/source/Host/macosx/HostInfoMacOSX.mm index 83d56a6793e..a1d6e477ca4 100644 --- a/lldb/source/Host/macosx/HostInfoMacOSX.mm +++ b/lldb/source/Host/macosx/HostInfoMacOSX.mm @@ -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 |

