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
This commit is contained in:
Aaron Puchert 2022-03-28 23:53:50 +02:00
parent 1d1cf9b6c4
commit 1721d52a62
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ add_clang_tool(clang-repl
ClangRepl.cpp
)
clang_target_link_libraries(clang-repl PUBLIC
clang_target_link_libraries(clang-repl PRIVATE
clangBasic
clangFrontend
clangInterpreter