annotate debuginfo-tests/lit.site.cfg.py.in @ 171:66f3bfe93da9

git version 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:07:02 +0900
parents 1d019706d866
children 0572611fdcc8
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 import sys
anatofuz
parents:
diff changeset
4 import lit.util
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 config.test_exec_root = "@CMAKE_BINARY_DIR@"
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
anatofuz
parents:
diff changeset
9 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
anatofuz
parents:
diff changeset
10 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
anatofuz
parents:
diff changeset
11 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
anatofuz
parents:
diff changeset
12 config.llvm_shlib_dir = "@SHLIBDIR@"
anatofuz
parents:
diff changeset
13 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
anatofuz
parents:
diff changeset
14 config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
anatofuz
parents:
diff changeset
15 config.debuginfo_tests_obj_root = "@DEBUGINFO_TESTS_BINARY_DIR@"
anatofuz
parents:
diff changeset
16 config.debuginfo_tests_src_root = "@DEBUGINFO_TESTS_SOURCE_DIR@"
anatofuz
parents:
diff changeset
17 config.has_lld = lit.util.pythonize_bool("@DEBUGINFO_TESTS_HAS_LLD@")
anatofuz
parents:
diff changeset
18 config.host_triple = "@LLVM_HOST_TRIPLE@"
anatofuz
parents:
diff changeset
19 config.target_triple = "@TARGET_TRIPLE@"
anatofuz
parents:
diff changeset
20 config.host_arch = "@HOST_ARCH@"
anatofuz
parents:
diff changeset
21 config.is_msvc = lit.util.pythonize_bool("@MSVC@")
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 config.python3_executable = "@PYTHON_EXECUTABLE@"
anatofuz
parents:
diff changeset
26
anatofuz
parents:
diff changeset
27 # Support substitution of the tools_dir with user parameters. This is
anatofuz
parents:
diff changeset
28 # used when we can't determine the tool dir at configuration time.
anatofuz
parents:
diff changeset
29 try:
anatofuz
parents:
diff changeset
30 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
anatofuz
parents:
diff changeset
31 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
anatofuz
parents:
diff changeset
32 except KeyError:
anatofuz
parents:
diff changeset
33 e = sys.exc_info()[1]
anatofuz
parents:
diff changeset
34 key, = e.args
anatofuz
parents:
diff changeset
35 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 import lit.llvm
anatofuz
parents:
diff changeset
38 lit.llvm.initialize(lit_config, config)
anatofuz
parents:
diff changeset
39
anatofuz
parents:
diff changeset
40 # Let the main config do the real work.
anatofuz
parents:
diff changeset
41 lit_config.load_config(config, "@DEBUGINFO_TESTS_SOURCE_DIR@/lit.cfg.py")