1 @LIT_SITE_CFG_IN_HEADER@
3 config
.llvm_src_root
= "@LLVM_SOURCE_DIR@"
4 config
.llvm_obj_root
= "@LLVM_BINARY_DIR@"
5 config
.llvm_tools_dir
= lit_config
.substitute("@LLVM_TOOLS_DIR@")
6 config
.llvm_libs_dir
= lit_config
.substitute("@LLVM_LIBS_DIR@")
7 config
.llvm_include_dir
= lit_config
.substitute("@LLVM_INCLUDE_DIR@")
8 config
.llvm_shlib_dir
= lit_config
.substitute("@SHLIBDIR@")
9 config
.llvm_build_mode
= lit_config
.substitute("@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
= lit_config
.substitute("@LLDB_LIBS_DIR@")
14 config
.lldb_framework_dir
= lit_config
.substitute("@LLDB_FRAMEWORK_DIR@")
15 config
.cmake_cxx_compiler
= "@CMAKE_CXX_COMPILER@"
16 config
.host_os
= "@HOST_OS@"
17 config
.host_triple
= "@LLVM_HOST_TRIPLE@"
18 config
.shared_libs
= @LLVM_ENABLE_SHARED_LIBS@
19 config
.llvm_use_sanitizer
= "@LLVM_USE_SANITIZER@"
20 config
.target_triple
= "@LLVM_TARGET_TRIPLE@"
21 config
.lldb_build_directory
= "@LLDB_TEST_BUILD_DIRECTORY@"
22 config
.python_executable
= "@Python3_EXECUTABLE@"
23 config
.lua_executable
= "@Lua_EXECUTABLE@"
24 config
.lua_test_entry
= "TestLuaAPI.py"
25 config
.dotest_common_args_str
= lit_config
.substitute("@LLDB_TEST_COMMON_ARGS@")
26 config
.dotest_user_args_str
= lit_config
.substitute("@LLDB_TEST_USER_ARGS@")
27 config
.lldb_enable_python
= @LLDB_ENABLE_PYTHON@
28 config
.dotest_lit_args_str
= None
29 config
.enabled_plugins
= []
30 config
.lldb_executable
= lit_config
.substitute('@LLDB_TEST_EXECUTABLE@')
31 config
.test_arch
= '@LLDB_TEST_ARCH@'
32 config
.test_compiler
= lit_config
.substitute('@LLDB_TEST_COMPILER@')
33 config
.dsymutil
= lit_config
.substitute('@LLDB_TEST_DSYMUTIL@')
34 config
.has_libcxx
= @LLDB_HAS_LIBCXX@
35 config
.libcxx_libs_dir
= "@LIBCXX_LIBRARY_DIR@"
36 config
.libcxx_include_dir
= "@LIBCXX_GENERATED_INCLUDE_DIR@"
37 config
.libcxx_include_target_dir
= "@LIBCXX_GENERATED_INCLUDE_TARGET_DIR@"
38 # The API tests use their own module caches.
39 config
.lldb_module_cache
= os
.path
.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-api")
40 config
.clang_module_cache
= os
.path
.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-api")
43 lldb_build_intel_pt
= '@LLDB_BUILD_INTEL_PT@'
44 if lldb_build_intel_pt
== '1':
45 config
.enabled_plugins
.append('intel-pt')
47 # Additional dotest arguments can be passed to lit by providing a
48 # semicolon-separates list: --param dotest-args="arg;arg".
49 dotest_lit_args_str
= lit_config
.params
.get('dotest-args', None)
50 if dotest_lit_args_str
:
51 config
.dotest_lit_args_str
= dotest_lit_args_str
53 # Let the main config do the real work.
54 lit_config
.load_config(config
, os
.path
.join(config
.lldb_src_root
, "test", "API", "lit.cfg.py"))