[Lldb-commits] [PATCH] D13535: Fix cmake build on OSX after r249434.
Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 8 05:37:09 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL249684: [cmake] Fix cmake build on OSX after r249434. (authored by dperchik).
Changed prior to commit:
http://reviews.llvm.org/D13535?vs=36798&id=36846#toc
Repository:
rL LLVM
http://reviews.llvm.org/D13535
Files:
lldb/trunk/cmake/LLDBDependencies.cmake
lldb/trunk/source/CMakeLists.txt
lldb/trunk/tools/lldb-server/CMakeLists.txt
Index: lldb/trunk/cmake/LLDBDependencies.cmake
===================================================================
--- lldb/trunk/cmake/LLDBDependencies.cmake
+++ lldb/trunk/cmake/LLDBDependencies.cmake
@@ -104,6 +104,13 @@
# Darwin-only libraries
if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
+ set(LLDB_VERS_GENERATED_FILE ${LLDB_BINARY_DIR}/source/LLDB_vers.c)
+ add_custom_command(OUTPUT ${LLDB_VERS_GENERATED_FILE}
+ COMMAND ${LLDB_SOURCE_DIR}/scripts/generate-vers.pl
+ ${LLDB_SOURCE_DIR}/lldb.xcodeproj/project.pbxproj liblldb_core
+ > ${LLDB_VERS_GENERATED_FILE})
+
+ set_source_files_properties(${LLDB_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
list(APPEND LLDB_USED_LIBS
lldbPluginDynamicLoaderDarwinKernel
lldbPluginObjectFileMachO
Index: lldb/trunk/tools/lldb-server/CMakeLists.txt
===================================================================
--- lldb/trunk/tools/lldb-server/CMakeLists.txt
+++ lldb/trunk/tools/lldb-server/CMakeLists.txt
@@ -35,8 +35,13 @@
lldb-server.cpp
LLDBServerUtilities.cpp
../../source/lldb.cpp
+ ${LLDB_VERS_GENERATED_FILE}
)
+ if (LLDB_VERS_GENERATED_FILE)
+ add_dependencies(lldb-server swig_wrapper)
+ endif()
+
# The Darwin linker doesn't understand --start-group/--end-group.
if (LLDB_LINKER_SUPPORTS_GROUPS)
target_link_libraries(lldb-server
Index: lldb/trunk/source/CMakeLists.txt
===================================================================
--- lldb/trunk/source/CMakeLists.txt
+++ lldb/trunk/source/CMakeLists.txt
@@ -14,19 +14,8 @@
)
endif ()
-if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
- set(LLDB_VERS_GENERATED_FILE ${LLDB_BINARY_DIR}/source/LLDB_vers.c)
- add_custom_command(OUTPUT ${LLDB_VERS_GENERATED_FILE}
- COMMAND ${LLDB_SOURCE_DIR}/scripts/generate-vers.pl
- ${LLDB_SOURCE_DIR}/lldb.xcodeproj/project.pbxproj liblldb_core
- > ${LLDB_VERS_GENERATED_FILE})
-
- set_source_files_properties(${LLDB_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
-endif ()
-
add_lldb_library(lldbBase
lldb.cpp
- ${LLDB_VERS_GENERATED_FILE}
)
add_subdirectory(Breakpoint)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13535.36846.patch
Type: text/x-patch
Size: 2148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151008/ace7adde/attachment.bin>
More information about the lldb-commits
mailing list