Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only link clang libraries that are directly used #473

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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