Fix link failure on linux with latest LLVM

This commit is contained in:
Phillip Stephens 2017-10-14 22:41:07 -07:00
parent 896de3833c
commit 82eb557b01
1 changed files with 6 additions and 0 deletions

View File

@ -14,9 +14,13 @@ if(NOT LLVM_FOUND)
message(STATUS "Unable to locate LLVM installation; skipping atdna")
else()
find_library(LLVMDEMANGLE_LIB LLVMDemangle HINTS "${LLVM_ROOT_DIR}/lib")
find_library(LLVMBINARYFORMAT_LIB LLVMBinaryFormat HINTS "${LLVM_ROOT_DIR}/lib")
if (NOT LLVMDEMANGLE_LIB)
set(LLVMDEMANGLE_LIB "")
endif()
if (NOT LLVMBINARYFORMAT_LIB)
set(LLVMBINARYFORMAT_LIB "")
endif()
list(APPEND LLVM_LIBS
clangFrontend
clangTooling
@ -33,7 +37,9 @@ list(APPEND LLVM_LIBS
LLVMOption
LLVMMCParser
LLVMBitReader
${LLVMBINARYFORMAT_LIB}
LLVMMC
LLVMDemangle
LLVMProfileData
LLVMSupport
${LLVMDEMANGLE_LIB})