diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-05 16:36:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-05 16:36:19 +0000 |
commit | b258d8f961212490800f96b97275dd6961ca1cc0 (patch) | |
tree | 7631d7da16d256b57999f9d32f5cceeddd369f41 /test/Makefile | |
parent | 923d56d436f750bc1f29db50e641078725558a1b (diff) |
Add clang_site_config user variable, so that extra tests (e.g., utils/C++Syntax)
can always find the main clang site config (when invoked via CMake/Makefiles, at
least).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile index a67fcbdc80..b7cb38af8a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -22,16 +22,17 @@ TESTARGS = -s endif endif +# Make sure any extra test suites can find the main site config. +LIT_ARGS := --param clang_site_config=$(PROJ_OBJ_DIR)/lit.site.cfg + ifdef VG - VGARG="--vg" -else - VGARG= + LIT_ARGS += "--vg" endif all:: lit.site.cfg @ echo '--- Running clang tests for $(TARGET_TRIPLE) ---' @ $(PYTHON) $(LLVM_SRC_ROOT)/utils/lit/lit.py \ - $(TESTARGS) $(TESTDIRS) $(VGARG) + $(LIT_ARGS) $(TESTARGS) $(TESTDIRS) FORCE: |