[Lldb-commits] [PATCH] D47801: Make lldb tools dependent on liblldb target when building LLDB.framework with CMake

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 5 14:28:06 PDT 2018

xiaobai created this revision.
xiaobai added reviewers: sas, clayborg, labath.
Herald added a subscriber: mgorny.

When you build LLDB.framework with cmake, the liblldb target is built
as a framework. When lldb tools are built with INCLUDE_IN_FRAMEWORK, then
LLDB.framework should depend on those tools. This means making liblldb depend on
those tools.



Index: cmake/modules/AddLLDB.cmake
--- cmake/modules/AddLLDB.cmake
+++ cmake/modules/AddLLDB.cmake
@@ -105,6 +105,7 @@
         set(resource_dir "/Resources")
         set(resource_dots "../")
+      add_dependencies(liblldb ${name})
       string(REGEX REPLACE "[^/]+" ".." _dots ${LLDB_FRAMEWORK_INSTALL_DIR})
       set_target_properties(${name} PROPERTIES
             RUNTIME_OUTPUT_DIRECTORY $<TARGET_FILE_DIR:liblldb>${resource_dir}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47801.150045.patch
Type: text/x-patch
Size: 523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180605/a0ee7e6b/attachment.bin>

More information about the lldb-commits mailing list