Skip to content

Commit 5cf1030

Browse files
committed
[clang-doc] create a separate cmake file for clang-doc's LIT tests
To avoid depending on all of the tools in clang-tools-extra, the `check-clang-extra-clang-doc` target is specialized in its own CMake file in clang-tools-extra/test/clang-doc. This eliminates around 800 files to be processed when building that target, plus linking every tool.
1 parent 9351ad6 commit 5cf1030

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

clang-tools-extra/test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,7 @@ add_lit_testsuite(check-clang-extra "Running clang-tools-extra/test"
8787

8888
add_lit_testsuites(CLANG-EXTRA ${CMAKE_CURRENT_SOURCE_DIR}
8989
DEPENDS ${CLANG_TOOLS_TEST_DEPS}
90+
SKIP "^clang-doc"
9091
)
92+
93+
add_subdirectory(clang-doc)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Specialize the clang-doc target to avoid building other projects
2+
add_lit_testsuite(check-clang-extra-clang-doc "Running clang-doc tests"
3+
${CMAKE_CURRENT_BINARY_DIR}
4+
DEPENDS clang-doc
5+
DEPENDS ${LLVM_UTILS_DEPS}
6+
)

0 commit comments

Comments
 (0)