diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-06-16 20:43:55 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-06-17 19:00:26 +0200 |
commit | d4f298c8206b435ce627b022efa0d5da620019cd (patch) | |
tree | 246d2328e035d0af07d4a77f3fdb30f401f76a80 /clang-tools-extra/clang-query | |
parent | 1ad5e3cd6b8147d6919a2dbee9b905f86ba50c97 (diff) | |
download | llvm-d4f298c8206b435ce627b022efa0d5da620019cd.zip llvm-d4f298c8206b435ce627b022efa0d5da620019cd.tar.gz llvm-d4f298c8206b435ce627b022efa0d5da620019cd.tar.bz2 |
[clang-tools-extra] Prevent linking to duplicate .a libs and dylib
Fix various tool libraries not to link to clang's .a libraries and dylib
simultaneously. This may cause breakage, in particular through
duplicate command-line option declarations.
Differential Revision: https://reviews.llvm.org/D81967
Diffstat (limited to 'clang-tools-extra/clang-query')
-rw-r--r-- | clang-tools-extra/clang-query/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-query/CMakeLists.txt b/clang-tools-extra/clang-query/CMakeLists.txt index 78d73ec..8192ec4 100644 --- a/clang-tools-extra/clang-query/CMakeLists.txt +++ b/clang-tools-extra/clang-query/CMakeLists.txt @@ -7,8 +7,10 @@ set(LLVM_LINK_COMPONENTS add_clang_library(clangQuery Query.cpp QueryParser.cpp + ) - LINK_LIBS +clang_target_link_libraries(clangQuery + PRIVATE clangAST clangASTMatchers clangBasic |