summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/ARCMT/lit.local.cfg2
-rw-r--r--clang/test/Analysis/lit.local.cfg2
-rw-r--r--clang/test/FixIt/lit.local.cfg2
-rw-r--r--clang/test/Makefile3
-rw-r--r--clang/test/Rewriter/lit.local.cfg2
-rw-r--r--clang/test/lit.site.cfg.in3
6 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/ARCMT/lit.local.cfg b/clang/test/ARCMT/lit.local.cfg
new file mode 100644
index 00000000000..4b28d6dff8a
--- /dev/null
+++ b/clang/test/ARCMT/lit.local.cfg
@@ -0,0 +1,2 @@
+if config.root.clang_arcmt == 0:
+ config.unsupported = True
diff --git a/clang/test/Analysis/lit.local.cfg b/clang/test/Analysis/lit.local.cfg
new file mode 100644
index 00000000000..da2a68b378c
--- /dev/null
+++ b/clang/test/Analysis/lit.local.cfg
@@ -0,0 +1,2 @@
+if config.root.clang_staticanalyzer == 0:
+ config.unsupported = True
diff --git a/clang/test/FixIt/lit.local.cfg b/clang/test/FixIt/lit.local.cfg
new file mode 100644
index 00000000000..5bbc711c656
--- /dev/null
+++ b/clang/test/FixIt/lit.local.cfg
@@ -0,0 +1,2 @@
+if config.root.clang_rewriter == 0:
+ config.unsupported = True
diff --git a/clang/test/Makefile b/clang/test/Makefile
index 4fdafe1481b..dbfa52177b7 100644
--- a/clang/test/Makefile
+++ b/clang/test/Makefile
@@ -45,6 +45,9 @@ lit.site.cfg: FORCE
@$(ECHOPATH) s=@CLANG_SOURCE_DIR@=$(PROJ_SRC_DIR)/..=g >> lit.tmp
@$(ECHOPATH) s=@CLANG_BINARY_DIR@=$(PROJ_OBJ_DIR)/..=g >> lit.tmp
@$(ECHOPATH) s=@TARGET_TRIPLE@=$(TARGET_TRIPLE)=g >> lit.tmp
+ @$(ECHOPATH) s=@ENABLE_CLANG_ARCMT@=$(ENABLE_CLANG_ARCMT)=g >> lit.tmp
+ @$(ECHOPATH) s=@ENABLE_CLANG_REWRITER@=$(ENABLE_CLANG_REWRITER)=g >> lit.tmp
+ @$(ECHOPATH) s=@ENABLE_CLANG_STATIC_ANALYZER@=$(ENABLE_CLANG_STATIC_ANALYZER)=g >> lit.tmp
@sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
@-rm -f lit.tmp
diff --git a/clang/test/Rewriter/lit.local.cfg b/clang/test/Rewriter/lit.local.cfg
new file mode 100644
index 00000000000..5bbc711c656
--- /dev/null
+++ b/clang/test/Rewriter/lit.local.cfg
@@ -0,0 +1,2 @@
+if config.root.clang_rewriter == 0:
+ config.unsupported = True
diff --git a/clang/test/lit.site.cfg.in b/clang/test/lit.site.cfg.in
index 39f432205a5..1b0b09ae96f 100644
--- a/clang/test/lit.site.cfg.in
+++ b/clang/test/lit.site.cfg.in
@@ -10,6 +10,9 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
config.clang_obj_root = "@CLANG_BINARY_DIR@"
config.target_triple = "@TARGET_TRIPLE@"
config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
+config.clang_arcmt = @ENABLE_CLANG_ARCMT@
+config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@
+config.clang_rewriter = @ENABLE_CLANG_REWRITER@
# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.
OpenPOWER on IntegriCloud