[Apple Silicon] Handle macOS in PlatformDarwin
authorDavide Italiano <ditaliano@apple.com>
Wed, 24 Jun 2020 23:35:10 +0000 (16:35 -0700)
committerDavide Italiano <ditaliano@apple.com>
Wed, 24 Jun 2020 23:35:36 +0000 (16:35 -0700)
This makes "target create /bin/ls" properly detect which platform
is needed when running lldb. Covered by many tests in the suite.

lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

index 85cd000..f5ec08a 100644 (file)
@@ -546,6 +546,8 @@ bool PlatformDarwin::ARMGetSupportedArchitectureAtIndex(uint32_t idx,
 #define OSNAME "watchos"
 #elif defined(TARGET_OS_BRIDGE) && TARGET_OS_BRIDGE == 1
 #define OSNAME "bridgeos"
+#elif defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1
+#define OSNAME "macosx"
 #else
 #define OSNAME "ios"
 #endif