[Lldb-commits] [PATCH] D14365: Fix build for platforms without ObjC++.

Chaoren Lin via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 4 18:34:54 PST 2015


chaoren created this revision.
chaoren added reviewers: jingham, jasonmolenda.
chaoren added a subscriber: lldb-commits.

http://reviews.llvm.org/D14365

Files:
  source/Plugins/Platform/MacOSX/CMakeLists.txt
  source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm

Index: source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm
===================================================================
--- source/Plugins/Platform/MacOSX/PlatformiOSSimulatorCoreSimulatorSupport.mm
+++ 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: source/Plugins/Platform/MacOSX/CMakeLists.txt
===================================================================
--- source/Plugins/Platform/MacOSX/CMakeLists.txt
+++ 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})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14365.39305.patch
Type: text/x-patch
Size: 1386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151105/c26296f2/attachment-0001.bin>


More information about the lldb-commits mailing list