hanchenye-llvm-project/lldb
Pavel Labath f753bfeeec Fix LLVM_LINK_LLVM_DYLIB build (pr35053)
Summary:
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.

Reviewers: zturner, sylvestre.ledru

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D39246

llvm-svn: 316997
2017-10-31 13:23:19 +00:00
..
cmake Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
docs Adding Support for Error Strings in Remote Packets 2017-07-12 11:15:34 +00:00
examples The save_crashlog command was still looking at lldb.target and 2017-10-12 02:21:41 +00:00
include/lldb Invert ArchSpec<->Platform dependency 2017-10-31 10:56:03 +00:00
lit [CMake] Build clang as dependency when using in-tree clang for tests. 2017-10-27 21:22:57 +00:00
lldb.xcodeproj Add Arm Architecture plugin to the xcode project file. 2017-10-27 02:21:55 +00:00
lldb.xcworkspace
packages/Python/lldbsuite Add data formatter for libc++'s forward_list 2017-10-31 12:27:43 +00:00
resources
scripts Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
source Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
test [CMake] Build clang as dependency when using in-tree clang for tests. 2017-10-27 21:22:57 +00:00
third_party/Python/module
tools Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
unittests Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
utils
www Mention breakpoint names in the tutorial. 2017-09-14 22:20:31 +00:00
.arcconfig
.clang-format
.gitignore
CMakeLists.txt Default to using in-tree clang for building test executables 2017-10-27 02:24:04 +00:00
CODE_OWNERS.txt
INSTALL.txt
LICENSE.TXT
use_lldb_suite_root.py