Skip to content

Commit

Permalink
Fix build for platforms without ObjC++.
Browse files Browse the repository at this point in the history
Reviewers: jingham, jasonmolenda

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D14365

llvm-svn: 252143
  • Loading branch information
chaoren committed Nov 5, 2015
1 parent 68802d3 commit 5911b66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 9 additions & 2 deletions 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})
Expand Up @@ -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
Expand Down Expand Up @@ -773,5 +771,3 @@ - (pid_t) spawnWithPath:(NSString *)path options:(NSDictionary *)options termina

return dev;
}

#endif // __APPLE__

0 comments on commit 5911b66

Please sign in to comment.