diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-11-05 03:30:45 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-11-05 03:30:45 +0000 |
commit | 5911b66335b83a730d4f722eb3b99161d756efe3 (patch) | |
tree | c92231a53463ff127196d40a085ab920bb0d8b88 | |
parent | 68802d31771f2b3a7da64f934544fa992c7626e9 (diff) | |
download | bcm5719-llvm-5911b66335b83a730d4f722eb3b99161d756efe3.tar.gz bcm5719-llvm-5911b66335b83a730d4f722eb3b99161d756efe3.zip |
Fix build for platforms without ObjC++.
Reviewers: jingham, jasonmolenda
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D14365
llvm-svn: 252143
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt | 11 | ||||
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt b/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt index 15fa9bfb244..5ec62ba7632 100644 --- a/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt +++ b/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt @@ -1,9 +1,16 @@ -add_lldb_library(lldbPluginPlatformMacOSX +list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES PlatformAppleSimulator.cpp PlatformDarwin.cpp PlatformDarwinKernel.cpp PlatformiOSSimulator.cpp - PlatformiOSSimulatorCoreSimulatorSupport.mm PlatformMacOSX.cpp PlatformRemoteiOS.cpp ) + +if(CMAKE_SYSTEM_NAME MATCHES "Darwin") +list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES + PlatformiOSSimulatorCoreSimulatorSupport.mm + ) +endif() + +add_lldb_library(lldbPluginPlatformMacOSX ${PLUGIN_PLATFORM_MACOSX_SOURCES}) diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm index f83fcf0c575..be2a33a97ad 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm @@ -9,8 +9,6 @@ #include "PlatformiOSSimulatorCoreSimulatorSupport.h" -#if defined (__APPLE__) // This Plugin uses the Mac-specific source/Host/macosx/cfcpp utilities - // C Includes // C++ Includes // Other libraries and framework includes @@ -773,5 +771,3 @@ CoreSimulatorSupport::DeviceSet::GetFanciest (CoreSimulatorSupport::DeviceType:: return dev; } - -#endif // __APPLE__ |