Merge commit 'b9069f8'

This commit is contained in:
Phillip Stephens 2016-12-11 12:18:34 -08:00
commit 255f2bf745
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,10 @@ include(FindLLVM.cmake)
if(NOT LLVM_FOUND) 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)
if (NOT LLVMDEMANGLE_LIB)
set(LLVMDEMANGLE_LIB "")
endif()
list(APPEND LLVM_LIBS list(APPEND LLVM_LIBS
clangFrontend clangFrontend
clangTooling clangTooling
@ -31,7 +35,7 @@ list(APPEND LLVM_LIBS
LLVMBitReader LLVMBitReader
LLVMMC LLVMMC
LLVMProfileData LLVMProfileData
LLVMDemangle ${LLVMDEMANGLE_LIB}
LLVMSupport) LLVMSupport)
string(FIND ${LLVM_VERSION_STRING} "svn" SVN_FILTER_IDX) string(FIND ${LLVM_VERSION_STRING} "svn" SVN_FILTER_IDX)