[HostInfoMacOS] Parse correctly the triple for Apple Silicon.
authorDavide Italiano <ditaliano@apple.com>
Wed, 24 Jun 2020 23:37:21 +0000 (16:37 -0700)
committerDavide Italiano <ditaliano@apple.com>
Wed, 24 Jun 2020 23:37:21 +0000 (16:37 -0700)
Again, debugging doesn't work on the new platform without this, so
it's implicitly covered by the testsuite.

lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

index 8d8db2f..60eacb1 100644 (file)
@@ -276,6 +276,9 @@ void HostInfoMacOSX::ComputeHostArchitectureSupport(ArchSpec &arch_32,
 #elif defined(TARGET_OS_WATCHOS) && TARGET_OS_WATCHOS == 1
         arch_32.GetTriple().setOS(llvm::Triple::WatchOS);
         arch_64.GetTriple().setOS(llvm::Triple::WatchOS);
+#elif defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1
+        arch_32.GetTriple().setOS(llvm::Triple::MacOSX);
+        arch_64.GetTriple().setOS(llvm::Triple::MacOSX);
 #else
         arch_32.GetTriple().setOS(llvm::Triple::IOS);
         arch_64.GetTriple().setOS(llvm::Triple::IOS);