annotate lld/test/lit.site.cfg.py.in @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +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 import lit.util
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 config.have_dia_sdk = lit.util.pythonize_bool("@LLVM_ENABLE_DIA_SDK@")
anatofuz
parents:
diff changeset
6 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
anatofuz
parents:
diff changeset
7 config.llvm_obj_root = "@LLVM_BINARY_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_libxml2_enabled = @LLVM_LIBXML2_ENABLED@
anatofuz
parents:
diff changeset
11 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
anatofuz
parents:
diff changeset
12 config.lld_obj_root = "@LLD_BINARY_DIR@"
anatofuz
parents:
diff changeset
13 config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
anatofuz
parents:
diff changeset
14 config.lld_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR@"
anatofuz
parents:
diff changeset
15 config.target_triple = "@TARGET_TRIPLE@"
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 config.python_executable = "@Python3_EXECUTABLE@"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 config.have_zlib = @HAVE_LIBZ@
150
anatofuz
parents:
diff changeset
18 config.sizeof_void_p = @CMAKE_SIZEOF_VOID_P@
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 # Support substitution of the tools and libs dirs with user parameters. This is
anatofuz
parents:
diff changeset
21 # used when we can't determine the tool dir at configuration time.
anatofuz
parents:
diff changeset
22 try:
anatofuz
parents:
diff changeset
23 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
anatofuz
parents:
diff changeset
24 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
anatofuz
parents:
diff changeset
25 except KeyError as e:
anatofuz
parents:
diff changeset
26 key, = e.args
anatofuz
parents:
diff changeset
27 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 import lit.llvm
anatofuz
parents:
diff changeset
30 lit.llvm.initialize(lit_config, config)
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 # Let the main config do the real work.
anatofuz
parents:
diff changeset
33 lit_config.load_config(config, "@LLD_SOURCE_DIR@/test/lit.cfg.py")