]> granicus.if.org Git - llvm/commitdiff
Make check-clang depend on the clang-check binary always
authorNico Weber <nicolasweber@gmx.de>
Wed, 1 May 2019 19:34:00 +0000 (19:34 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 1 May 2019 19:34:00 +0000 (19:34 +0000)
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.

Differential Revision: https://reviews.llvm.org/D61324

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359717 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/clang/test/BUILD.gn

index b5c5ec058b98672e7151efbcd610b51ac3af6783..b7fd034fde1d3dca53ac13f9039ed3bd45fa1d5d 100644 (file)
@@ -108,6 +108,7 @@ group("test") {
     ":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 @@ group("test") {
   }
   if (clang_enable_static_analyzer) {
     deps += [
-      "//clang/tools/clang-check",
       "//clang/tools/clang-extdef-mapping",
     ]
   }