[llvm] Avoid linking llvm-cfi-verify to duplicate libs
authorMichał Górny <mgorny@gentoo.org>
Tue, 16 Jun 2020 10:16:52 +0000 (12:16 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 17 Jun 2020 17:00:26 +0000 (19:00 +0200)
commit352558e69b3691cfdc8e1adc2a1fbb737bc67cbb
treeb300d1a96cd48c1f5458935aca06c837405b1f65
parent5c621900a6614d6e27843c14157b4c2630c124c5
[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
llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt