150
|
1 @LIT_SITE_CFG_IN_HEADER@
|
|
2
|
|
3 config.test_exec_root = "@LLDB_BINARY_DIR@"
|
|
4 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
|
5 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
|
|
6 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
|
|
7 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
|
|
8 config.llvm_build_mode = "@LLVM_BUILD_MODE@"
|
|
9 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
|
10 config.lldb_obj_root = "@LLDB_BINARY_DIR@"
|
|
11 config.lldb_src_root = "@LLDB_SOURCE_DIR@"
|
|
12 config.target_triple = "@TARGET_TRIPLE@"
|
|
13 config.python_executable = "@PYTHON_EXECUTABLE@"
|
|
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.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
|
|
19 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
|
|
20 config.llvm_build_mode = config.llvm_build_mode % lit_config.params
|
|
21 except KeyError as e:
|
|
22 key, = e.args
|
|
23 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
|
24
|
|
25 import lit.llvm
|
|
26 lit.llvm.initialize(lit_config, config)
|
|
27
|
|
28 # Let the main config do the real work.
|
|
29 lit_config.load_config(config, "@LLDB_SOURCE_DIR@/test/lit.cfg.py")
|