From: Davide Italiano Date: Wed, 24 Jun 2020 23:37:21 +0000 (-0700) Subject: [HostInfoMacOS] Parse correctly the triple for Apple Silicon. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47ac45332e25c89d0ced5108c667fe92cf0f509a;p=platform%2Fupstream%2Fllvm.git [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. --- 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);