This revision was automatically updated to reflect the committed changes. Closed by commit rL252143: Fix build for platforms without ObjC++. (authored by chaoren).
Changed prior to commit: http://reviews.llvm.org/D14365?vs=39305&id=39309#toc Repository: rL LLVM http://reviews.llvm.org/D14365 Files: lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm Index: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm =================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm +++ lldb/trunk/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 @@ return dev; } - -#endif // __APPLE__ Index: lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt =================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt +++ lldb/trunk/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})
Index: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm =================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm +++ lldb/trunk/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 @@ return dev; } - -#endif // __APPLE__ Index: lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt =================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/CMakeLists.txt +++ lldb/trunk/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})
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits