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