From 47ac45332e25c89d0ced5108c667fe92cf0f509a Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Wed, 24 Jun 2020 16:37:21 -0700 Subject: [PATCH] [HostInfoMacOS] Parse correctly the triple for Apple Silicon. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm index 8d8db2f..60eacb1 100644 --- a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm +++ b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm @@ -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); -- 2.7.4