Skip to content

Commit e74553f

Browse files
MarkZ3tkrasnukha
authored andcommitted
Fix missing libLLVMDemangle
Closes #78 I used llvm_map_components_to_libnames as shown in the example of this page: https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project Signed-off-by: Marc-Andre Laperle <[email protected]>
1 parent 1f6b321 commit e74553f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,8 @@ if (lib_llvm_shared)
9191
set(lib_llvm "${lib_llvm_shared}")
9292
else()
9393
message(STATUS "Can't find LLVM shared library, falling back to static linking LLVMSupport")
94-
find_library(lib_llvm_static LLVMSupport HINTS ${LLVM_LIBRARY_DIRS})
95-
set(lib_llvm "${lib_llvm_static}")
94+
llvm_map_components_to_libnames(lib_llvm support)
9695

97-
get_property(LLVMSupportDeps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_LLVMSupport)
98-
foreach(dependency ${LLVMSupportDeps})
99-
find_library(lib ${dependency} HINTS ${LLVM_LIBRARY_DIRS})
100-
list(APPEND llvm_deps "${lib}")
101-
endforeach()
10296
if (LLVM_ENABLE_TERMINFO AND NOT WIN32)
10397
find_library(TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw)
10498
if (TERMINFO_LIB)

0 commit comments

Comments
 (0)