Skip to content

Commit

Permalink
Only link clang libraries that are directly used (intel#473)
Browse files Browse the repository at this point in the history
Other dependent clang libraries, e.g. those clangFrontendTool depends,
will be automatically added by cmake.
  • Loading branch information
wenju-he authored Aug 3, 2023
1 parent e9d59b8 commit 1bda00e
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,37 +264,9 @@ if(USE_PREBUILT_LLVM OR CLANG_LINK_CLANG_DYLIB)
list(APPEND OPENCL_CLANG_LINK_LIBS clang-cpp)
else()
list(APPEND OPENCL_CLANG_LINK_LIBS
# The list of clang libraries is taken from clang makefile
# (build/tools/clang/tools/driver/CMakeFiles/clang.dir/link.txt)
# All duplicate libraries are there on purpose
clangBasic
clangCodeGen
clangDriver
clangFrontend
clangFrontendTool
clangCodeGen
clangRewriteFrontend
clangARCMigrate
clangStaticAnalyzerFrontend
clangStaticAnalyzerCheckers
clangStaticAnalyzerCore
clangCrossTU
clangIndex
clangFrontend
clangDriver
clangParse
clangSerialization
clangSema
clangAnalysis
clangEdit
clangFormat
clangToolingInclusions
clangToolingCore
clangRewrite
clangASTMatchers
clangAST
clangLex
clangBasic
)
endif()

Expand Down

0 comments on commit 1bda00e

Please sign in to comment.