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_shlib_dir = lit_config.substitute("@SHLIBDIR@") 8config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" 9config.lldb_src_root = "@LLDB_SOURCE_DIR@" 10config.lldb_obj_root = "@LLDB_BINARY_DIR@" 11config.lldb_libs_dir = lit_config.substitute("@LLDB_LIBS_DIR@") 12config.lldb_tools_dir = lit_config.substitute("@LLDB_TOOLS_DIR@") 13config.lldb_platform_url = lit_config.substitute("@LLDB_TEST_PLATFORM_URL@") 14config.lldb_platform_working_dir = lit_config.substitute("@LLDB_TEST_PLATFORM_WORKING_DIR@") 15# Since it comes from the command line, it may have backslashes which 16# should not need to be escaped. 17config.lldb_lit_tools_dir = lit_config.substitute(r"@LLDB_LIT_TOOLS_DIR@") 18config.cmake_sysroot = lit_config.substitute("@LLDB_TEST_SYSROOT@" or "@DEFAULT_SYSROOT@") 19config.has_libcxx = @LLDB_HAS_LIBCXX@ 20config.enable_remote = not @LLDB_TEST_SHELL_DISABLE_REMOTE@ 21config.libcxx_libs_dir = "@LIBCXX_LIBRARY_DIR@" 22config.target_triple = "@LLVM_TARGET_TRIPLE@" 23config.python_executable = "@Python3_EXECUTABLE@" 24config.have_zlib = @LLVM_ENABLE_ZLIB@ 25config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@" 26config.lldb_enable_lzma = @LLDB_ENABLE_LZMA@ 27config.host_triple = "@LLVM_HOST_TRIPLE@" 28config.lldb_bitness = 64 if @LLDB_IS_64_BITS@ else 32 29config.lldb_enable_python = @LLDB_ENABLE_PYTHON@ 30config.lldb_enable_lua = @LLDB_ENABLE_LUA@ 31config.lldb_build_directory = "@LLDB_TEST_BUILD_DIRECTORY@" 32config.have_lldb_server = @LLDB_TOOL_LLDB_SERVER_BUILD@ 33config.lldb_system_debugserver = @LLDB_USE_SYSTEM_DEBUGSERVER@ 34config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@" 35# The shell tests use their own module caches. 36config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell") 37config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-shell") 38 39import lit.llvm 40lit.llvm.initialize(lit_config, config) 41 42# Let the main config do the real work. 43lit_config.load_config(config, os.path.join(config.lldb_src_root, "test", "Shell", "lit.cfg.py")) 44