Let clang-repl link privately against Clang components
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Mon, 28 Mar 2022 21:53:50 +0000 (23:53 +0200)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Mon, 28 Mar 2022 21:53:53 +0000 (23:53 +0200)
commit1721d52a62067b8a5ceec58b417b2c73ad870b13
tree1b6ae698ff1b5ece3d89e226c4b015380e1860bd
parent1d1cf9b6c42c820f38eb776cb7504564441a23ee
Let clang-repl link privately against Clang components

First of all, this is the convention: all other tools have their
dependencies private. While it does not have an effect on linking
(there is no linking against executables), it does have an effect
on exporting: having the targets private allows installing the tools
without the libraries in a statically linked build, or a build against
libclang-cpp.so.

Reviewed By: v.g.vassilev

Differential Revision: https://reviews.llvm.org/D122546
clang/tools/clang-repl/CMakeLists.txt