1 @LIT_SITE_CFG_IN_HEADER@
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@"
11 config
.python_executable
= "@Python3_EXECUTABLE@"
12 config
.target_triple
= "@TARGET_TRIPLE@"
13 config
.clang_tidy_staticanalyzer
= @CLANG_TIDY_ENABLE_STATIC_ANALYZER@
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.
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
24 lit_config
.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key
,key
))
27 lit
.llvm
.initialize(lit_config
, config
)
29 # Let the main config do the real work.
30 lit_config
.load_config(config
, "@CLANG_TOOLS_SOURCE_DIR@/test/lit.cfg.py")