Fix the CLANG_ENABLE_STATIC_ANALYZER=OFF build.

tools/clang/tools/CMakeLists.txt does not create the
clang-check target when CLANG_ENABLE_STATIC_ANALYZER=OFF.

llvm-svn: 271392
This commit is contained in:
Yaron Keren 2016-06-01 13:47:26 +00:00
parent 288be8bab6
commit 11a7285ecd
1 changed files with 7 additions and 1 deletions

View File

@ -26,11 +26,17 @@ endif ()
list(APPEND CLANG_TEST_DEPS
clang clang-headers
clang-check clang-format
clang-format
c-index-test diagtool
clang-tblgen
)
if(CLANG_ENABLE_STATIC_ANALYZER)
list(APPEND CLANG_TEST_DEPS
clang-check
)
endif()
if (CLANG_ENABLE_ARCMT)
list(APPEND CLANG_TEST_DEPS
arcmt-test