Skip to content
Snippets Groups Projects
Commit 352558e6 authored by Michał Górny's avatar Michał Górny
Browse files

[llvm] Avoid linking llvm-cfi-verify to duplicate libs

Fix the CMake rules for LLVMCFIVerify library not to pull duplicate
LLVM .a libraries when linking to the dylib.  This prevents problems
due to duplicate symbols and apparently fixes mingw32.

This is an alternative approach to D44650 that just forces .a libraries
instead.  However, there doesn't seem to be any reason to do that.

Differential Revision: https://reviews.llvm.org/D81921
parent 5c621900
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,17 @@ add_library(LLVMCFIVerify
)
llvm_update_compile_flags(LLVMCFIVerify)
llvm_map_components_to_libnames(libs
DebugInfoDWARF
MC
MCParser
Object
Support
Symbolize
)
if (LLVM_LINK_LLVM_DYLIB)
set(libs LLVM)
else()
llvm_map_components_to_libnames(libs
DebugInfoDWARF
MC
MCParser
Object
Support
Symbolize
)
endif()
target_link_libraries(LLVMCFIVerify ${libs})
set_target_properties(LLVMCFIVerify PROPERTIES FOLDER "Libraries")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment