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_shlib_dir = "@SHLIBDIR@"
|
|
9 config.llvm_build_mode = "@LLVM_BUILD_MODE@"
|
|
10 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
|
11 config.lldb_obj_root = "@LLDB_BINARY_DIR@"
|
|
12 config.lldb_src_root = "@LLDB_SOURCE_DIR@"
|
|
13 config.lldb_libs_dir = "@LLDB_LIBS_DIR@"
|
|
14 config.cmake_cxx_compiler = "@CMAKE_CXX_COMPILER@"
|
|
15 config.host_os = "@HOST_OS@"
|
|
16 config.host_triple = "@LLVM_HOST_TRIPLE@"
|
|
17 config.shared_libs = @LLVM_ENABLE_SHARED_LIBS@
|
|
18 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
|
|
19 config.target_triple = "@TARGET_TRIPLE@"
|
|
20 config.lldb_build_directory = "@LLDB_TEST_BUILD_DIRECTORY@"
|
|
21 config.python_executable = "@PYTHON_EXECUTABLE@"
|
|
22 config.dotest_path = "@LLDB_SOURCE_DIR@/test/API/dotest.py"
|
|
23 config.dotest_args_str = "@LLDB_DOTEST_ARGS@"
|
|
24 config.lldb_enable_python = @LLDB_ENABLE_PYTHON@
|
|
25 config.dotest_lit_args_str = None
|
173
|
26 config.enabled_plugins = []
|
150
|
27 config.lldb_executable = '@LLDB_TEST_EXECUTABLE@'
|
|
28 config.test_arch = '@LLDB_TEST_ARCH@'
|
|
29 config.test_compiler = '@LLDB_TEST_COMPILER@'
|
|
30 config.dsymutil = '@LLDB_TEST_DSYMUTIL@'
|
|
31 config.filecheck = '@LLDB_TEST_FILECHECK@'
|
|
32 # The API tests use their own module caches.
|
|
33 config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-api")
|
|
34 config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-api")
|
|
35
|
173
|
36 # Plugins
|
|
37 lldb_build_intel_pt = '@LLDB_BUILD_INTEL_PT@'
|
|
38 if lldb_build_intel_pt == '1':
|
|
39 config.enabled_plugins.append('intel-pt')
|
|
40
|
150
|
41 # Additional dotest arguments can be passed to lit by providing a
|
|
42 # semicolon-separates list: --param dotest-args="arg;arg".
|
|
43 dotest_lit_args_str = lit_config.params.get('dotest-args', None)
|
|
44 if dotest_lit_args_str:
|
|
45 config.dotest_lit_args_str = dotest_lit_args_str
|
|
46
|
|
47 # Support substitution of the tools and libs dirs with user parameters. This is
|
|
48 # used when we can't determine the tool dir at configuration time.
|
|
49 try:
|
|
50 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
|
|
51 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
|
|
52 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
|
|
53 config.llvm_build_mode = config.llvm_build_mode % lit_config.params
|
|
54 config.lldb_executable = config.lldb_executable % lit_config.params
|
|
55 config.lldb_libs_dir = config.lldb_libs_dir % lit_config.params
|
|
56 config.test_compiler = config.test_compiler % lit_config.params
|
|
57 config.dsymutil = config.dsymutil % lit_config.params
|
|
58 config.filecheck = config.filecheck % lit_config.params
|
|
59 config.dotest_args_str = config.dotest_args_str % lit_config.params
|
|
60 except KeyError as e:
|
|
61 key, = e.args
|
|
62 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
|
63
|
|
64 # Let the main config do the real work.
|
|
65 lit_config.load_config(config, "@LLDB_SOURCE_DIR@/test/API/lit.cfg.py")
|