llvm-project/lld/lib/Core
Pavel Labath c9fa114b28 [lld][cmake] Fix LLVM_LINK_LLVM_DYLIB build
Summary:
Lld's build had a couple of issues which prevented a successfull
LLVM_LINK_LLVM_DYLIB compilation.

- add_llvm_library vs llvm_add_library: One adds a library to libLLVM.so, other
  one doesn't. Lld was using the wrong one, causing symbols to be mupltiply
  defined in things linking to libLLVM.
- confusion when to use LINK_LIBS vs LINK_COMPONENTS in llvm_add_library
- not using LLVM_LINK_COMPONENTS for add_lld_tool

With these fixes lld compiles and it's test suite passes both in
LLVM_LINK_LLVM_DYLIB mode and without it.

Reviewers: ruiu, beanz

Subscribers: llvm-commits, mgorny

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

llvm-svn: 291432
2017-01-09 09:57:08 +00:00
..
CMakeLists.txt [lld][cmake] Fix LLVM_LINK_LLVM_DYLIB build 2017-01-09 09:57:08 +00:00
DefinedAtom.cpp [MachO/Core] Remove (now) unused static member function. NFCI. 2016-08-04 19:49:11 +00:00
Error.cpp Use noexcept directly now that all compilers support it 2016-10-19 23:50:50 +00:00
File.cpp Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-05 01:00:56 +00:00
LinkingContext.cpp Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-04 17:39:46 +00:00
Reader.cpp Create a vector containing all input sections. 2016-11-05 22:37:59 +00:00
Reproduce.cpp Define sys::path::convert_to_slash 2017-01-09 01:47:15 +00:00
Resolver.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
SymbolTable.cpp [Core] Retire yet another unused member function. 2016-08-12 12:37:23 +00:00
Writer.cpp Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-05 01:00:56 +00:00