diff --git a/clang-tools-extra/clang-query/tool/CMakeLists.txt b/clang-tools-extra/clang-query/tool/CMakeLists.txt index 2b58bf6dc2c9..1a7a10b45e06 100644 --- a/clang-tools-extra/clang-query/tool/CMakeLists.txt +++ b/clang-tools-extra/clang-query/tool/CMakeLists.txt @@ -2,6 +2,10 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) add_clang_executable(clang-query ClangQuery.cpp) target_link_libraries(clang-query + clangAST + clangASTMatchers + clangBasic + clangDynamicASTMatchers clangFrontend clangQuery clangTooling diff --git a/clang-tools-extra/clang-tidy/CMakeLists.txt b/clang-tools-extra/clang-tidy/CMakeLists.txt index 052aa99cb7b9..01f533985c5e 100644 --- a/clang-tools-extra/clang-tidy/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/CMakeLists.txt @@ -17,6 +17,8 @@ add_clang_library(clangTidy clangBasic clangFrontend clangRewriteCore + clangSema + clangStaticAnalyzerCore clangStaticAnalyzerFrontend clangTooling ) diff --git a/clang-tools-extra/clang-tidy/google/CMakeLists.txt b/clang-tools-extra/clang-tidy/google/CMakeLists.txt index b5781e66e57e..ad2b3206aaa7 100644 --- a/clang-tools-extra/clang-tidy/google/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/google/CMakeLists.txt @@ -9,5 +9,6 @@ add_clang_library(clangTidyGoogleModule clangAST clangASTMatchers clangBasic + clangLex clangTidy ) diff --git a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt index ba8430c3ceb6..233604ca7c80 100644 --- a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt @@ -11,5 +11,6 @@ add_clang_library(clangTidyMiscModule clangAST clangASTMatchers clangBasic + clangLex clangTidy ) diff --git a/clang-tools-extra/modularize/CMakeLists.txt b/clang-tools-extra/modularize/CMakeLists.txt index 6919e8594012..eaf220884c86 100644 --- a/clang-tools-extra/modularize/CMakeLists.txt +++ b/clang-tools-extra/modularize/CMakeLists.txt @@ -10,6 +10,7 @@ add_clang_executable(modularize ) target_link_libraries(modularize + clangAST clangBasic clangDriver clangFrontend diff --git a/clang-tools-extra/module-map-checker/CMakeLists.txt b/clang-tools-extra/module-map-checker/CMakeLists.txt index c26815011447..cb7c6fd69f35 100644 --- a/clang-tools-extra/module-map-checker/CMakeLists.txt +++ b/clang-tools-extra/module-map-checker/CMakeLists.txt @@ -7,7 +7,11 @@ add_clang_executable(module-map-checker ) target_link_libraries(module-map-checker + clangAST clangBasic + clangDriver + clangFrontend + clangLex clangRewriteFrontend clangTooling ) diff --git a/clang-tools-extra/unittests/clang-query/CMakeLists.txt b/clang-tools-extra/unittests/clang-query/CMakeLists.txt index 25b7533a2e01..a96a9bcb448b 100644 --- a/clang-tools-extra/unittests/clang-query/CMakeLists.txt +++ b/clang-tools-extra/unittests/clang-query/CMakeLists.txt @@ -14,6 +14,7 @@ add_extra_unittest(ClangQueryTests target_link_libraries(ClangQueryTests clangAST clangASTMatchers + clangDynamicASTMatchers clangQuery clangTooling ) diff --git a/clang/lib/Analysis/CMakeLists.txt b/clang/lib/Analysis/CMakeLists.txt index a3cbe57b7ec8..9de4fe34ef5b 100644 --- a/clang/lib/Analysis/CMakeLists.txt +++ b/clang/lib/Analysis/CMakeLists.txt @@ -31,4 +31,5 @@ add_clang_library(clangAnalysis LINK_LIBS clangAST clangBasic + clangLex ) diff --git a/clang/lib/CodeGen/CMakeLists.txt b/clang/lib/CodeGen/CMakeLists.txt index 822dd9fa2e5e..00a87d87a290 100644 --- a/clang/lib/CodeGen/CMakeLists.txt +++ b/clang/lib/CodeGen/CMakeLists.txt @@ -13,6 +13,7 @@ set(LLVM_LINK_COMPONENTS ScalarOpts Support Target + TransformUtils ) add_clang_library(clangCodeGen diff --git a/llvm/examples/BrainF/CMakeLists.txt b/llvm/examples/BrainF/CMakeLists.txt index 025d09336405..65589d9f39f2 100644 --- a/llvm/examples/BrainF/CMakeLists.txt +++ b/llvm/examples/BrainF/CMakeLists.txt @@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS Core ExecutionEngine JIT + MC Support nativecodegen ) diff --git a/llvm/examples/Fibonacci/CMakeLists.txt b/llvm/examples/Fibonacci/CMakeLists.txt index 724a0f6715d3..c015e50ac350 100644 --- a/llvm/examples/Fibonacci/CMakeLists.txt +++ b/llvm/examples/Fibonacci/CMakeLists.txt @@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine Interpreter JIT + MC Support nativecodegen ) diff --git a/llvm/examples/HowToUseJIT/CMakeLists.txt b/llvm/examples/HowToUseJIT/CMakeLists.txt index 88aed026bf6f..237cbea861d2 100644 --- a/llvm/examples/HowToUseJIT/CMakeLists.txt +++ b/llvm/examples/HowToUseJIT/CMakeLists.txt @@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine Interpreter JIT + MC Support nativecodegen ) diff --git a/llvm/examples/Kaleidoscope/Chapter4/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter4/CMakeLists.txt index 72a9f0512cd2..2b87e8684986 100644 --- a/llvm/examples/Kaleidoscope/Chapter4/CMakeLists.txt +++ b/llvm/examples/Kaleidoscope/Chapter4/CMakeLists.txt @@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine InstCombine JIT + MC ScalarOpts Support nativecodegen diff --git a/llvm/examples/Kaleidoscope/Chapter5/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter5/CMakeLists.txt index c7d0276194cf..c3e7c43cb411 100644 --- a/llvm/examples/Kaleidoscope/Chapter5/CMakeLists.txt +++ b/llvm/examples/Kaleidoscope/Chapter5/CMakeLists.txt @@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine InstCombine JIT + MC ScalarOpts Support nativecodegen diff --git a/llvm/examples/Kaleidoscope/Chapter6/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter6/CMakeLists.txt index 669c7eb171b8..cd61cec89d55 100644 --- a/llvm/examples/Kaleidoscope/Chapter6/CMakeLists.txt +++ b/llvm/examples/Kaleidoscope/Chapter6/CMakeLists.txt @@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine InstCombine JIT + MC ScalarOpts Support nativecodegen diff --git a/llvm/examples/Kaleidoscope/Chapter7/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter7/CMakeLists.txt index 0a0c8e7cab58..cdb13c465d14 100644 --- a/llvm/examples/Kaleidoscope/Chapter7/CMakeLists.txt +++ b/llvm/examples/Kaleidoscope/Chapter7/CMakeLists.txt @@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine InstCombine JIT + MC ScalarOpts Support TransformUtils diff --git a/llvm/tools/lli/CMakeLists.txt b/llvm/tools/lli/CMakeLists.txt index 731b61a11b41..41f75349dfeb 100644 --- a/llvm/tools/lli/CMakeLists.txt +++ b/llvm/tools/lli/CMakeLists.txt @@ -8,7 +8,9 @@ set(LLVM_LINK_COMPONENTS Instrumentation Interpreter JIT + MC MCJIT + Object SelectionDAG Support native diff --git a/llvm/tools/llvm-ar/CMakeLists.txt b/llvm/tools/llvm-ar/CMakeLists.txt index 0e809a705bbe..5193def2aad5 100644 --- a/llvm/tools/llvm-ar/CMakeLists.txt +++ b/llvm/tools/llvm-ar/CMakeLists.txt @@ -1,5 +1,6 @@ set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} + Core Object Support ) diff --git a/llvm/tools/llvm-nm/CMakeLists.txt b/llvm/tools/llvm-nm/CMakeLists.txt index 1fe4a2dbaca7..20293bb88f05 100644 --- a/llvm/tools/llvm-nm/CMakeLists.txt +++ b/llvm/tools/llvm-nm/CMakeLists.txt @@ -1,5 +1,6 @@ set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} + Core Object Support ) diff --git a/llvm/tools/yaml2obj/CMakeLists.txt b/llvm/tools/yaml2obj/CMakeLists.txt index 5e63dfbbe725..78e92a0680fe 100644 --- a/llvm/tools/yaml2obj/CMakeLists.txt +++ b/llvm/tools/yaml2obj/CMakeLists.txt @@ -1,4 +1,5 @@ set(LLVM_LINK_COMPONENTS + MC Object Support ) diff --git a/llvm/unittests/ExecutionEngine/CMakeLists.txt b/llvm/unittests/ExecutionEngine/CMakeLists.txt index 489eaaff6ad1..5e462220e5cd 100644 --- a/llvm/unittests/ExecutionEngine/CMakeLists.txt +++ b/llvm/unittests/ExecutionEngine/CMakeLists.txt @@ -2,6 +2,7 @@ set(LLVM_LINK_COMPONENTS Core ExecutionEngine Interpreter + MC Support ) diff --git a/llvm/unittests/ExecutionEngine/JIT/CMakeLists.txt b/llvm/unittests/ExecutionEngine/JIT/CMakeLists.txt index 72c1df7463d3..5ace1c6ee48a 100644 --- a/llvm/unittests/ExecutionEngine/JIT/CMakeLists.txt +++ b/llvm/unittests/ExecutionEngine/JIT/CMakeLists.txt @@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS Core ExecutionEngine JIT + MC Support nativecodegen ) diff --git a/llvm/unittests/ExecutionEngine/MCJIT/CMakeLists.txt b/llvm/unittests/ExecutionEngine/MCJIT/CMakeLists.txt index afa3f2a6f66b..cbd08fe9b8e2 100644 --- a/llvm/unittests/ExecutionEngine/MCJIT/CMakeLists.txt +++ b/llvm/unittests/ExecutionEngine/MCJIT/CMakeLists.txt @@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS ExecutionEngine IPO JIT + MC MCJIT ScalarOpts Support diff --git a/llvm/unittests/MC/CMakeLists.txt b/llvm/unittests/MC/CMakeLists.txt index e2beab22ff99..37543f48bcef 100644 --- a/llvm/unittests/MC/CMakeLists.txt +++ b/llvm/unittests/MC/CMakeLists.txt @@ -1,5 +1,7 @@ set(LLVM_LINK_COMPONENTS + MC MCAnalysis + Support ) add_llvm_unittest(MCTests