From d420e7b76cefb350a9cb89f1fb417f3f42636e30 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 27 Nov 2010 13:10:11 +0000 Subject: CMake: lit(check.vcproj) can run with multiple configurations on Visual Studio. Unittests need LLVM_BUILD_MODE to pick up each test. Confirmed on CentOS5, Mingw, MSYS, and with possible configurations on VS8 and VS10. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120212 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.site.cfg.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/lit.site.cfg.in') diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 79b2c60..56b0a82 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -6,5 +6,13 @@ config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" config.llvmgcc_dir = "@LLVMGCCDIR@" config.python_executable = "@PYTHON_EXECUTABLE@" +# Support substitution of the tools_dir with user parameters. This is +# used when we can't determine the tool dir at configuration time. +try: + config.llvm_tools_dir = config.llvm_tools_dir % lit.params +except KeyError,e: + key, = e.args + lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) + # Let the main config do the real work. lit.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg") -- cgit v1.1