]> granicus.if.org Git - clang/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/cfe/trunk@359717 91177308-0d34-0410-b5e6-96231b3b80d8

test/CMakeLists.txt

index 5a1b3eef23c2b900433340ec45aa2b8aed6167e6..facddbd0a1ce3abb689291ec38fec9798d57b7f6 100644 (file)
@@ -46,21 +46,23 @@ if(CLANG_TEST_USE_VG)
 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()