Skip to content

Commit 2e73129

Browse files
author
Kai Luo
committed
[include-cleaner] Fix link errors when -DBUILD_SHARED_LIBS=ON
Fixed ppc buildbot https://lab.llvm.org/buildbot/#/builders/121/builds/24273 which is using `-DBUILD_SHARED_LIBS=ON`. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D136229
1 parent 875fd9d commit 2e73129

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

clang-tools-extra/include-cleaner/lib/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ add_clang_library(clangIncludeCleaner
66
WalkAST.cpp
77

88
LINK_LIBS
9-
clangBasic
109
clangAST
10+
clangBasic
11+
clangLex
1112
)
1213

clang-tools-extra/include-cleaner/tool/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ include_directories("../lib") # FIXME: use public APIs instead.
44
add_clang_tool(clang-include-cleaner IncludeCleaner.cpp)
55
clang_target_link_libraries(clang-include-cleaner PRIVATE
66
clangBasic
7+
clangFrontend
8+
clangSerialization
79
clangTooling
810
)
911
target_link_libraries(clang-include-cleaner PRIVATE

0 commit comments

Comments
 (0)