annotate lldb/test/API/lit.site.cfg.py.in @ 180:680fa57a2f20

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