13 lines
769 B
Diff
13 lines
769 B
Diff
diff --git a/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/source/Host/macosx/objcxx/HostInfoMacOSX.mm
|
|
--- a/source/Host/macosx/objcxx/HostInfoMacOSX.mm
|
|
+++ b/source/Host/macosx/objcxx/HostInfoMacOSX.mm
|
|
@@ -233,7 +233,7 @@ void HostInfoMacOSX::ComputeHostArchitectureSupport(ArchSpec &arch_32,
|
|
len = sizeof(is_64_bit_capable);
|
|
::sysctlbyname("hw.cpu64bit_capable", &is_64_bit_capable, &len, NULL, 0);
|
|
|
|
- if (cputype == CPU_TYPE_ARM64 && cpusubtype == CPU_SUBTYPE_ARM64E) {
|
|
+ if (cputype == CPU_TYPE_ARM64 && cpusubtype == ((cpu_subtype_t) 2)) { // CPU_SUBTYPE_ARM64E is not available in the macOS 10.12 headers
|
|
// The arm64e architecture is a preview. Pretend the host architecture
|
|
// is arm64.
|
|
cpusubtype = CPU_SUBTYPE_ARM64_ALL;
|