summaryrefslogtreecommitdiff
path: root/unittests/Makefile
diff options
context:
space:
mode:
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