[PATCH] D61324: Make check-clang depend on the clang-check binary always
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 10:31:11 PDT 2019
thakis created this revision.
thakis added a reviewer: rnk.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
check-clang (the target that runs all clang tests) used to
only depend on clang-check (a binary like clang-tidy,
clang-refactor, etc) if the static analyzer is enabled.
However, several lit tests call clang-check unconditionally,
so always depend on it.
Fixes a "could not find clang-check" lit warning in clean builds with
the static analyzer disabled.
Also sort the deps in the CMake file and put just one dep on each line.
https://reviews.llvm.org/D61324
Files:
clang/test/CMakeLists.txt
llvm/utils/gn/secondary/clang/test/BUILD.gn
Index: llvm/utils/gn/secondary/clang/test/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -108,6 +108,7 @@
":lit_unit_site_cfg",
"//clang/lib/Headers",
"//clang/tools/c-index-test",
+ "//clang/tools/clang-check",
"//clang/tools/clang-diff",
"//clang/tools/clang-format",
"//clang/tools/clang-import-test",
@@ -147,7 +148,6 @@
}
if (clang_enable_static_analyzer) {
deps += [
- "//clang/tools/clang-check",
"//clang/tools/clang-extdef-mapping",
]
}
Index: clang/test/CMakeLists.txt
===================================================================
--- clang/test/CMakeLists.txt
+++ clang/test/CMakeLists.txt
@@ -46,21 +46,23 @@
endif ()
list(APPEND CLANG_TEST_DEPS
- clang clang-resource-headers
+ c-index-test
+ clang
+ clang-resource-headers
+ clang-check
clang-format
- c-index-test diagtool
clang-tblgen
clang-offload-bundler
clang-import-test
clang-rename
clang-refactor
clang-diff
+ diagtool
hmaptool
)
if(CLANG_ENABLE_STATIC_ANALYZER)
list(APPEND CLANG_TEST_DEPS
- clang-check
clang-extdef-mapping
)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61324.197370.patch
Type: text/x-patch
Size: 1267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190430/f81b2c63/attachment.bin>
More information about the cfe-commits
mailing list