summaryrefslogtreecommitdiff
path: root/unittests/Makefile
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-12-13 16:09:42 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-12-13 16:09:42 +0000
commitfc2929fdb7cce47daf5b2857a56013fad0257cb6 (patch)
tree8a743249938d975d1e37653bf1f0f8d8eb7b6647 /unittests/Makefile
parent702baef6d636004db1a0bb6aa34b664650e594f6 (diff)
downloadclang-fc2929fdb7cce47daf5b2857a56013fad0257cb6.tar.gz
clang-fc2929fdb7cce47daf5b2857a56013fad0257cb6.tar.bz2
clang-fc2929fdb7cce47daf5b2857a56013fad0257cb6.tar.xz
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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Makefile')
-rw-r--r--unittests/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/unittests/Makefile b/unittests/Makefile
index 799bc557fb..e01a6ac463 100644
--- a/unittests/Makefile
+++ b/unittests/Makefile
@@ -14,7 +14,21 @@ ifndef CLANG_LEVEL
IS_UNITTEST_LEVEL := 1
CLANG_LEVEL := ..
-PARALLEL_DIRS = ASTMatchers Basic AST Frontend Lex Tooling Format
+PARALLEL_DIRS = Basic Lex
+
+include $(CLANG_LEVEL)/../..//Makefile.config
+
+ifeq ($(ENABLE_CLANG_REWRITER),1)
+PARALLEL_DIRS += Format
+endif
+
+ifeq ($(ENABLE_CLANG_REWRITER),1)
+PARALLEL_DIRS += ASTMatchers AST Tooling
+endif
+
+ifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1)
+PARALLEL_DIRS += Frontend
+endif
endif # CLANG_LEVEL