Skip to content

Commit 0729d2e

Browse files
authored
Revert "Only link clang libraries that are directly used (#473)" (#476)
This reverts commit 1bda00e.
1 parent 45180f6 commit 0729d2e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CMakeLists.txt

+28
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,37 @@ if(USE_PREBUILT_LLVM OR CLANG_LINK_CLANG_DYLIB)
264264
list(APPEND OPENCL_CLANG_LINK_LIBS clang-cpp)
265265
else()
266266
list(APPEND OPENCL_CLANG_LINK_LIBS
267+
# The list of clang libraries is taken from clang makefile
268+
# (build/tools/clang/tools/driver/CMakeFiles/clang.dir/link.txt)
269+
# All duplicate libraries are there on purpose
267270
clangBasic
271+
clangCodeGen
272+
clangDriver
268273
clangFrontend
269274
clangFrontendTool
275+
clangCodeGen
276+
clangRewriteFrontend
277+
clangARCMigrate
278+
clangStaticAnalyzerFrontend
279+
clangStaticAnalyzerCheckers
280+
clangStaticAnalyzerCore
281+
clangCrossTU
282+
clangIndex
283+
clangFrontend
284+
clangDriver
285+
clangParse
286+
clangSerialization
287+
clangSema
288+
clangAnalysis
289+
clangEdit
290+
clangFormat
291+
clangToolingInclusions
292+
clangToolingCore
293+
clangRewrite
294+
clangASTMatchers
295+
clangAST
296+
clangLex
297+
clangBasic
270298
)
271299
endif()
272300

0 commit comments

Comments
 (0)