annotate lldb/test/Shell/lit.site.cfg.py.in @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 @LIT_SITE_CFG_IN_HEADER@
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
anatofuz
parents:
diff changeset
4 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
5 config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
6 config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@")
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
7 config.llvm_shlib_dir = lit_config.substitute("@SHLIBDIR@")
150
anatofuz
parents:
diff changeset
8 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 config.lldb_src_root = "@LLDB_SOURCE_DIR@"
150
anatofuz
parents:
diff changeset
10 config.lldb_obj_root = "@LLDB_BINARY_DIR@"
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
11 config.lldb_libs_dir = lit_config.substitute("@LLDB_LIBS_DIR@")
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
12 config.lldb_tools_dir = lit_config.substitute("@LLDB_TOOLS_DIR@")
150
anatofuz
parents:
diff changeset
13 # Since it comes from the command line, it may have backslashes which
anatofuz
parents:
diff changeset
14 # should not need to be escaped.
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
15 config.lldb_lit_tools_dir = lit_config.substitute(r"@LLDB_LIT_TOOLS_DIR@")
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
16 config.target_triple = "@LLVM_TARGET_TRIPLE@"
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 config.python_executable = "@Python3_EXECUTABLE@"
150
anatofuz
parents:
diff changeset
18 config.have_zlib = @LLVM_ENABLE_ZLIB@
anatofuz
parents:
diff changeset
19 config.lldb_enable_lzma = @LLDB_ENABLE_LZMA@
anatofuz
parents:
diff changeset
20 config.host_triple = "@LLVM_HOST_TRIPLE@"
anatofuz
parents:
diff changeset
21 config.lldb_bitness = 64 if @LLDB_IS_64_BITS@ else 32
anatofuz
parents:
diff changeset
22 config.lldb_enable_python = @LLDB_ENABLE_PYTHON@
anatofuz
parents:
diff changeset
23 config.lldb_enable_lua = @LLDB_ENABLE_LUA@
anatofuz
parents:
diff changeset
24 config.lldb_build_directory = "@LLDB_TEST_BUILD_DIRECTORY@"
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
25 config.have_lldb_server = @LLDB_TOOL_LLDB_SERVER_BUILD@
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
26 config.lldb_system_debugserver = @LLDB_USE_SYSTEM_DEBUGSERVER@
150
anatofuz
parents:
diff changeset
27 # The shell tests use their own module caches.
anatofuz
parents:
diff changeset
28 config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell")
anatofuz
parents:
diff changeset
29 config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-shell")
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 import lit.llvm
anatofuz
parents:
diff changeset
32 lit.llvm.initialize(lit_config, config)
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 # Let the main config do the real work.
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
35 lit_config.load_config(config, os.path.join(config.lldb_src_root, "test", "Shell", "lit.cfg.py"))