summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-20 19:04:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-20 19:04:28 +0000
commit0b65298f7a5ca112d18dcbce56f52c082edfc0b7 (patch)
tree2fd3a5df02357d194dd86e0ab5786f0bc618fb47
parent1dd48c34e52bd3fb9d9006f37e48e34c6a37f1e1 (diff)
downloadbcm5719-llvm-0b65298f7a5ca112d18dcbce56f52c082edfc0b7.tar.gz
bcm5719-llvm-0b65298f7a5ca112d18dcbce56f52c082edfc0b7.zip
Teach 'make check-all' to build the site configuration for clang, if it is in tree.
llvm-svn: 82400
-rw-r--r--llvm/test/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/llvm/test/Makefile b/llvm/test/Makefile
index 77037018384..db85dda54f5 100644
--- a/llvm/test/Makefile
+++ b/llvm/test/Makefile
@@ -46,12 +46,22 @@ ifdef VG
VALGRIND := valgrind --tool=memcheck --quiet --trace-children=yes --error-exitcode=3 --leak-check=full $(VALGRIND_EXTRA_ARGS)
endif
-# Check what to run for -all
-EXTRA_LIT_SITE_CFGS :=
+# Check what to run for -all.
LIT_ALL_TESTSUITES := $(LIT_TESTSUITE)
+
+extra-lit-site-cfgs::
+.PHONY: extra-lit-site-cfgs
+
+ifneq ($(strip $(filter check-local-all,$(MAKECMDGOALS))),)
ifndef TESTSUITE
ifeq ($(shell test -d $(PROJ_SRC_DIR)/../tools/clang && echo OK), OK)
LIT_ALL_TESTSUITES += $(PROJ_OBJ_DIR)/../tools/clang/test
+
+# Force creation of Clang's lit.site.cfg.
+clang-lit-site-cfg: FORCE
+ $(MAKE) -C $(PROJ_OBJ_DIR)/../tools/clang/test lit.site.cfg
+extra-lit-site-cfgs:: clang-lit-site-cfg
+endif
endif
endif
@@ -90,7 +100,7 @@ check-local-lit:: lit.site.cfg Unit/lit.site.cfg
--path "$(LLVMGCCDIR)/bin" \
$(LIT_ARGS) $(LIT_TESTSUITE) )
-check-local-all:: lit.site.cfg Unit/lit.site.cfg $(EXTRA_LIT_SITE_CFGS)
+check-local-all:: lit.site.cfg Unit/lit.site.cfg extra-lit-site-cfgs
( $(ULIMIT) \
$(LLVM_SRC_ROOT)/utils/lit/lit.py \
--path "$(LLVMToolDir)" \
@@ -179,7 +189,7 @@ site.exp: FORCE
@mv site.tmp site.exp
lit.site.cfg: site.exp
- @echo "Making 'lit.site.cfg' file..."
+ @echo "Making LLVM 'lit.site.cfg' file..."
@echo "## Autogenerated by Makefile ##" > $@
@echo "# Do not edit!" >> $@
@echo >> $@
@@ -190,7 +200,7 @@ lit.site.cfg: site.exp
@echo "lit.load_config(config, \"\"\"$(LLVM_SRC_ROOT)/test/lit.cfg\"\"\")" >> $@
Unit/lit.site.cfg: Unit/.dir FORCE
- @echo "Making unittest 'lit.site.cfg' file..."
+ @echo "Making LLVM unittest 'lit.site.cfg' file..."
@echo "## Autogenerated by Makefile ##" > $@
@echo "# Do not edit!" >> $@
@echo >> $@
OpenPOWER on IntegriCloud