150
|
1 @LIT_SITE_CFG_IN_HEADER@
|
|
2
|
|
3 import sys
|
|
4
|
|
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
|
|
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
|
|
7 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
|
8 config.clang_tools_binary_dir = "@CLANG_TOOLS_BINARY_DIR@"
|
|
9 config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
|
|
10 config.clang_libs_dir = "@SHLIBDIR@"
|
173
|
11 config.python_executable = "@Python3_EXECUTABLE@"
|
150
|
12 config.target_triple = "@TARGET_TRIPLE@"
|
221
|
13 config.clang_tidy_staticanalyzer = @CLANG_TIDY_ENABLE_STATIC_ANALYZER@
|
150
|
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.
|
|
17 try:
|
|
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
|
|
21 except 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 import lit.llvm
|
|
27 lit.llvm.initialize(lit_config, config)
|
|
28
|
|
29 # Let the main config do the real work.
|
|
30 lit_config.load_config(config, "@CLANG_TOOLS_SOURCE_DIR@/test/lit.cfg.py")
|