[PATCH] D122546: Let clang-repl link privately against Clang components

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 27 12:10:23 PDT 2022


aaronpuchert created this revision.
aaronpuchert added a reviewer: v.g.vassilev.
Herald added a subscriber: mgorny.
Herald added a project: All.
aaronpuchert requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122546

Files:
  clang/tools/clang-repl/CMakeLists.txt


Index: clang/tools/clang-repl/CMakeLists.txt
===================================================================
--- clang/tools/clang-repl/CMakeLists.txt
+++ clang/tools/clang-repl/CMakeLists.txt
@@ -11,7 +11,7 @@
   ClangRepl.cpp
   )
 
-clang_target_link_libraries(clang-repl PUBLIC
+clang_target_link_libraries(clang-repl PRIVATE
   clangBasic
   clangFrontend
   clangInterpreter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122546.418463.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220327/1dbff772/attachment.bin>


More information about the cfe-commits mailing list