[PATCH] D136229: [include-cleaner] Fix link errors when -DBUILD_SHARED_LIBS=ON
Kai Luo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 18 22:50:16 PDT 2022
lkail created this revision.
lkail added reviewers: hokein, sammccall, PowerPC.
Herald added a project: All.
lkail requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Fixed ppc buildbot https://lab.llvm.org/buildbot/#/builders/121/builds/24273 which is using `-DBUILD_SHARED_LIBS=ON`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136229
Files:
clang-tools-extra/include-cleaner/lib/CMakeLists.txt
clang-tools-extra/include-cleaner/tool/CMakeLists.txt
Index: clang-tools-extra/include-cleaner/tool/CMakeLists.txt
===================================================================
--- clang-tools-extra/include-cleaner/tool/CMakeLists.txt
+++ clang-tools-extra/include-cleaner/tool/CMakeLists.txt
@@ -4,6 +4,8 @@
add_clang_tool(clang-include-cleaner IncludeCleaner.cpp)
clang_target_link_libraries(clang-include-cleaner PRIVATE
clangBasic
+ clangFrontend
+ clangSerialization
clangTooling
)
target_link_libraries(clang-include-cleaner PRIVATE
Index: clang-tools-extra/include-cleaner/lib/CMakeLists.txt
===================================================================
--- clang-tools-extra/include-cleaner/lib/CMakeLists.txt
+++ clang-tools-extra/include-cleaner/lib/CMakeLists.txt
@@ -6,7 +6,8 @@
WalkAST.cpp
LINK_LIBS
- clangBasic
clangAST
+ clangBasic
+ clangLex
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136229.468786.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221019/299cc122/attachment.bin>
More information about the cfe-commits
mailing list