From: Hiroshi Inoue Date: Wed, 28 Jun 2017 06:14:30 +0000 (+0000) Subject: Add missing library dependency to fix build break in llvm-lto2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=215f133d7381fd7210d1c9fe19a9d76921f06658;p=llvm Add missing library dependency to fix build break in llvm-lto2 error message CMakeFiles/llvm-lto2.dir/llvm-lto2.cpp.o: In function `dumpSymtab(int, char**)': llvm-lto2.cpp:(.text._ZL10dumpSymtabiPPc+0x238): undefined reference to `llvm::getBitcodeFileContents(llvm::MemoryBufferRef)' collect2: error: ld returned 1 exit status git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306507 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-lto2/CMakeLists.txt b/tools/llvm-lto2/CMakeLists.txt index cdd97c9fef5..9be12d71ed7 100644 --- a/tools/llvm-lto2/CMakeLists.txt +++ b/tools/llvm-lto2/CMakeLists.txt @@ -1,5 +1,6 @@ set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} + BitReader Core Linker LTO diff --git a/tools/llvm-lto2/LLVMBuild.txt b/tools/llvm-lto2/LLVMBuild.txt index 42b0b9e26cc..d51aa229067 100644 --- a/tools/llvm-lto2/LLVMBuild.txt +++ b/tools/llvm-lto2/LLVMBuild.txt @@ -19,4 +19,4 @@ type = Tool name = llvm-lto2 parent = Tools -required_libraries = Core Linker LTO MC Object Support all-targets +required_libraries = BitReader Core Linker LTO MC Object Support all-targets