[Lldb-commits] [PATCH] D39246: Fix LLVM_LINK_LLVM_DYLIB build (pr35053)

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 24 10:30:24 PDT 2017


labath created this revision.
Herald added a subscriber: mgorny.

r316368 broke this build when it introduced a reference to a pthread
function to the Utility module. This caused cmake to generate an
incorrect link line (wrong order of libs) because it did not see the
dependency from Utility to the system libraries. Instead these libraries
were being manually added to each final target.

This changes moves the dependency management from the individual targets
to the lldbUtility module, which is consistent with how llvm does it.
The final targets will pick up these libraries as they will be a part of
the link interface of the module.

Technically, some of these dependencies could go into the host module,
as that's where most of the os-specific code is, but I did not try to
investigate which ones.


https://reviews.llvm.org/D39246

Files:
  cmake/LLDBDependencies.cmake
  scripts/CMakeLists.txt
  source/API/CMakeLists.txt
  source/Utility/CMakeLists.txt
  tools/argdumper/CMakeLists.txt
  tools/driver/CMakeLists.txt
  tools/intel-features/CMakeLists.txt
  tools/lldb-server/CMakeLists.txt
  unittests/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39246.120097.patch
Type: text/x-patch
Size: 8981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20171024/d4a87133/attachment.bin>


More information about the lldb-commits mailing list