Merge pull request #3989 from orivej/llvm

Link to libLLVM rather than to individual LLVM libs when USE_STATIC_LIBRARIES is off
This commit is contained in:
alexey-milovidov 2019-01-06 15:27:25 +03:00 committed by GitHub
commit 402d775005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,11 @@ endif()
function(llvm_libs_all REQUIRED_LLVM_LIBRARIES)
llvm_map_components_to_libnames (result all)
list (REMOVE_ITEM result "LTO" "LLVM")
if (USE_STATIC_LIBRARIES OR NOT "LLVM" IN_LIST result)
list (REMOVE_ITEM result "LTO" "LLVM")
else()
set (result "LLVM")
endif ()
if (TERMCAP_LIBRARY)
list (APPEND result ${TERMCAP_LIBRARY})
endif ()