mirror of https://github.com/libAthena/athena.git
Fix link failure on linux with latest LLVM
This commit is contained in:
parent
896de3833c
commit
82eb557b01
|
@ -14,9 +14,13 @@ if(NOT LLVM_FOUND)
|
||||||
message(STATUS "Unable to locate LLVM installation; skipping atdna")
|
message(STATUS "Unable to locate LLVM installation; skipping atdna")
|
||||||
else()
|
else()
|
||||||
find_library(LLVMDEMANGLE_LIB LLVMDemangle HINTS "${LLVM_ROOT_DIR}/lib")
|
find_library(LLVMDEMANGLE_LIB LLVMDemangle HINTS "${LLVM_ROOT_DIR}/lib")
|
||||||
|
find_library(LLVMBINARYFORMAT_LIB LLVMBinaryFormat HINTS "${LLVM_ROOT_DIR}/lib")
|
||||||
if (NOT LLVMDEMANGLE_LIB)
|
if (NOT LLVMDEMANGLE_LIB)
|
||||||
set(LLVMDEMANGLE_LIB "")
|
set(LLVMDEMANGLE_LIB "")
|
||||||
endif()
|
endif()
|
||||||
|
if (NOT LLVMBINARYFORMAT_LIB)
|
||||||
|
set(LLVMBINARYFORMAT_LIB "")
|
||||||
|
endif()
|
||||||
list(APPEND LLVM_LIBS
|
list(APPEND LLVM_LIBS
|
||||||
clangFrontend
|
clangFrontend
|
||||||
clangTooling
|
clangTooling
|
||||||
|
@ -33,7 +37,9 @@ list(APPEND LLVM_LIBS
|
||||||
LLVMOption
|
LLVMOption
|
||||||
LLVMMCParser
|
LLVMMCParser
|
||||||
LLVMBitReader
|
LLVMBitReader
|
||||||
|
${LLVMBINARYFORMAT_LIB}
|
||||||
LLVMMC
|
LLVMMC
|
||||||
|
LLVMDemangle
|
||||||
LLVMProfileData
|
LLVMProfileData
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
${LLVMDEMANGLE_LIB})
|
${LLVMDEMANGLE_LIB})
|
||||||
|
|
Loading…
Reference in New Issue