1@LIT_SITE_CFG_IN_HEADER@
2
3import sys
4
5config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
8config.clang_tools_binary_dir = "@CLANG_TOOLS_BINARY_DIR@"
9config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
10config.clang_libs_dir = "@SHLIBDIR@"
11config.python_executable = "@PYTHON_EXECUTABLE@"
12config.target_triple = "@TARGET_TRIPLE@"
13config.clang_staticanalyzer = @CLANG_ENABLE_STATIC_ANALYZER@
14
15# Support substitution of the tools and libs dirs with user parameters. This is
16# used when we can't determine the tool dir at configuration time.
17try:
18    config.clang_tools_dir = config.clang_tools_dir % lit_config.params
19    config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
20    config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
21except KeyError:
22    e = sys.exc_info()[1]
23    key, = e.args
24    lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
25
26@LIT_SITE_CFG_IN_FOOTER@
27
28# Let the main config do the real work.
29lit_config.load_config(config, "@CLANG_TOOLS_SOURCE_DIR@/test/lit.cfg")
30