This is an archive of the discontinued LLVM Phabricator instance.

PlatformMacOSX should be activated for lldb built to run on an iOS etc device
ClosedPublic

Authored by jasonmolenda on Feb 24 2022, 2:09 PM.

Details

Summary

In the changes Jonas made in https://reviews.llvm.org/D117340 , a small oversight was that PlatformMacOSX (despite the name) is active for any native Darwin operating system, where lldb and the target process are running on the same system. This patch uses compile-time checks to return the appropriate OSType for the OS lldb is being compiled to, so the "host" platform will correctly be selected when lldb & the inferior are both running on that OS. And a small change to PlatformMacOSX::GetSupportedArchitectures which adds additional recognized triples when running on macOS but not other native Darwin systems.

When PlatformMacOSX is compiled on a non-Darwin system where we don't have these availability macros, we will continue to return macOS as the OSType, as we were before.

Diff Detail

Event Timeline

jasonmolenda requested review of this revision.Feb 24 2022, 2:09 PM
jasonmolenda created this revision.
This revision is now accepted and ready to land.Feb 24 2022, 4:31 PM