Jordan Rose b8859f6791 With CLANG_ENABLE_STATIC_ANALYZER=0, link clang properly and skip clang-check.
Previously, the CMake build still tried to link clang against the static
analyzer libraries, even if CLANG_ENABLE_STATIC_ANALYZER was off.
Furthermore, clang-check depends on the analyzer, so it should be disabled
(in both CMake and configure builds).

In theory, clang-check could be made to conditionally include analyzer
support (like clang itself), but for now this at least gets a CMake ALL_BUILD
working.

Patch by Stephen Kelly, modified by me.

llvm-svn: 185548
2013-07-03 16:20:29 +00:00

30 lines
808 B
Makefile

##===- tools/Makefile --------------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
CLANG_LEVEL := ..
include $(CLANG_LEVEL)/../../Makefile.config
DIRS := libclang c-index-test arcmt-test c-arcmt-test
PARALLEL_DIRS := driver diagtool clang-format
ifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1)
PARALLEL_DIRS += clang-check
endif
# Recurse into the extra repository of tools if present.
OPTIONAL_PARALLEL_DIRS := extra
ifeq ($(BUILD_CLANG_ONLY),YES)
PARALLEL_DIRS := driver libclang c-index-test
OPTIONAL_DIRS :=
endif
include $(CLANG_LEVEL)/Makefile