diff options
author | Hiroshi Inoue <inouehrs@jp.ibm.com> | 2017-06-28 06:14:30 +0000 |
---|---|---|
committer | Hiroshi Inoue <inouehrs@jp.ibm.com> | 2017-06-28 06:14:30 +0000 |
commit | 215f133d7381fd7210d1c9fe19a9d76921f06658 (patch) | |
tree | d194987006277e9e26cdd97adc833ede14ca81a5 /tools/llvm-lto2 | |
parent | 499abe305341f901410552ca4401862557d21001 (diff) |
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
Diffstat (limited to 'tools/llvm-lto2')
-rw-r--r-- | tools/llvm-lto2/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tools/llvm-lto2/LLVMBuild.txt | 2 |
2 files changed, 2 insertions, 1 deletions
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 |