Files
clang-p2996/clang/lib/FrontendTool/Makefile
Roman Divacky d93c8c008e Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user
specifies not to. Dont build ASTMatchers with Rewriter disabled and
StaticAnalyzer when it's disabled.

Without all those three, the clang binary shrinks (x86_64) from ~36MB
to ~32MB (unstripped).

llvm-svn: 170135
2012-12-13 16:09:42 +00:00

29 lines
718 B
Makefile

##===- clang/lib/FrontendTool/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 := ../..
LIBRARYNAME := clangFrontendTool
include $(CLANG_LEVEL)/Makefile
include $(CLANG_LEVEL)/../../Makefile.config
ifeq ($(ENABLE_CLANG_ARCMT),1)
CXX.Flags += -DCLANG_ENABLE_ARCMT
endif
ifeq ($(ENABLE_CLANG_REWRITER),1)
CXX.Flags += -DCLANG_ENABLE_REWRITER
endif
ifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1)
CXX.Flags += -DCLANG_ENABLE_STATIC_ANALYZER
endif