annotate debuginfo-tests/lit.site.cfg.py.in @ 209:dd44ba33042e

merged...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:36:09 +0900
parents 2e18cbf3894f
children
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
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
6 config.targets_to_build = "@TARGETS_TO_BUILD@".split()
150
anatofuz
parents:
diff changeset
7 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
anatofuz
parents:
diff changeset
8 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
anatofuz
parents:
diff changeset
9 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
anatofuz
parents:
diff changeset
10 config.llvm_shlib_dir = "@SHLIBDIR@"
anatofuz
parents:
diff changeset
11 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
anatofuz
parents:
diff changeset
12 config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
anatofuz
parents:
diff changeset
13 config.debuginfo_tests_obj_root = "@DEBUGINFO_TESTS_BINARY_DIR@"
anatofuz
parents:
diff changeset
14 config.debuginfo_tests_src_root = "@DEBUGINFO_TESTS_SOURCE_DIR@"
anatofuz
parents:
diff changeset
15 config.host_triple = "@LLVM_HOST_TRIPLE@"
anatofuz
parents:
diff changeset
16 config.target_triple = "@TARGET_TRIPLE@"
anatofuz
parents:
diff changeset
17 config.is_msvc = lit.util.pythonize_bool("@MSVC@")
anatofuz
parents:
diff changeset
18
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
19 config.mlir_src_root = "@MLIR_SOURCE_DIR@"
150
anatofuz
parents:
diff changeset
20
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
21 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
150
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 # Support substitution of the tools_dir with user parameters. This is
anatofuz
parents:
diff changeset
24 # used when we can't determine the tool dir at configuration time.
anatofuz
parents:
diff changeset
25 try:
anatofuz
parents:
diff changeset
26 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
anatofuz
parents:
diff changeset
27 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
anatofuz
parents:
diff changeset
28 except KeyError:
anatofuz
parents:
diff changeset
29 e = sys.exc_info()[1]
anatofuz
parents:
diff changeset
30 key, = e.args
anatofuz
parents:
diff changeset
31 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 import lit.llvm
anatofuz
parents:
diff changeset
34 lit.llvm.initialize(lit_config, config)
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 # Let the main config do the real work.
anatofuz
parents:
diff changeset
37 lit_config.load_config(config, "@DEBUGINFO_TESTS_SOURCE_DIR@/lit.cfg.py")