Author: chaoren Date: Wed Nov 4 21:30:45 2015 New Revision: 252143 URL: http://llvm.org/viewvc/llvm-project?rev=252143&view=rev Log: Fix build for platforms without ObjC++.
Reviewers: jingham, jasonmolenda Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14365 Modified: lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm Modified: lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt?rev=252143&r1=252142&r2=252143&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt (original) +++ lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt Wed Nov 4 21:30:45 2015 @@ -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}) Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm?rev=252143&r1=252142&r2=252143&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm (original) +++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm Wed Nov 4 21:30:45 2015 @@ -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::GetFanc return dev; } - -#endif // __APPLE__ _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits