diff --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt index de8f087a52a5ed..56ff54f8fadde6 100644 --- a/clang-tools-extra/clangd/CMakeLists.txt +++ b/clang-tools-extra/clangd/CMakeLists.txt @@ -160,6 +160,7 @@ clang_target_link_libraries(clangDaemon clangTooling clangToolingCore clangToolingInclusions + clangToolingInclusionsStdlib clangToolingSyntax ) diff --git a/clang/lib/Tooling/Inclusions/CMakeLists.txt b/clang/lib/Tooling/Inclusions/CMakeLists.txt index fba003b4e0de5e..1954d16a1b2312 100644 --- a/clang/lib/Tooling/Inclusions/CMakeLists.txt +++ b/clang/lib/Tooling/Inclusions/CMakeLists.txt @@ -3,12 +3,12 @@ set(LLVM_LINK_COMPONENTS support) add_clang_library(clangToolingInclusions HeaderIncludes.cpp IncludeStyle.cpp - StandardLibrary.cpp LINK_LIBS - clangAST clangBasic clangLex clangRewrite clangToolingCore ) + + add_subdirectory(Stdlib) diff --git a/clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt b/clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt new file mode 100644 index 00000000000000..0f52c3590ac9af --- /dev/null +++ b/clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt @@ -0,0 +1,6 @@ +add_clang_library(clangToolingInclusionsStdlib + StandardLibrary.cpp + + LINK_LIBS + clangAST + ) diff --git a/clang/lib/Tooling/Inclusions/StandardLibrary.cpp b/clang/lib/Tooling/Inclusions/Stdlib/StandardLibrary.cpp similarity index 100% rename from clang/lib/Tooling/Inclusions/StandardLibrary.cpp rename to clang/lib/Tooling/Inclusions/Stdlib/StandardLibrary.cpp diff --git a/clang/unittests/Tooling/CMakeLists.txt b/clang/unittests/Tooling/CMakeLists.txt index dfc1f59cf0a833..424932e5295198 100644 --- a/clang/unittests/Tooling/CMakeLists.txt +++ b/clang/unittests/Tooling/CMakeLists.txt @@ -81,6 +81,7 @@ clang_target_link_libraries(ToolingTests clangTooling clangToolingCore clangToolingInclusions + clangToolingInclusionsStdlib clangToolingRefactoring clangTransformer )