2016-04-16 15:01:42 +08:00
|
|
|
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
|
2013-12-30 14:18:08 +08:00
|
|
|
import sys
|
|
|
|
|
2022-02-02 01:05:20 +08:00
|
|
|
config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
|
2012-08-07 15:09:14 +08:00
|
|
|
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
2012-08-07 16:33:04 +08:00
|
|
|
config.clang_tools_binary_dir = "@CLANG_TOOLS_BINARY_DIR@"
|
2022-03-11 07:29:10 +08:00
|
|
|
config.llvm_shlib_dir = "@SHLIBDIR@"
|
2020-04-29 09:37:28 +08:00
|
|
|
config.python_executable = "@Python3_EXECUTABLE@"
|
2021-12-02 17:04:46 +08:00
|
|
|
config.target_triple = "@LLVM_TARGET_TRIPLE@"
|
2022-03-11 07:29:10 +08:00
|
|
|
config.host_triple = "@LLVM_HOST_TRIPLE@"
|
2020-09-04 07:37:29 +08:00
|
|
|
config.clang_tidy_staticanalyzer = @CLANG_TIDY_ENABLE_STATIC_ANALYZER@
|
2022-02-08 07:46:33 +08:00
|
|
|
config.has_plugins = @CLANG_PLUGIN_SUPPORT@ & ~@LLVM_INSTALL_TOOLCHAIN_ONLY@
|
2012-08-07 15:09:14 +08:00
|
|
|
# Support substitution of the tools and libs dirs with user parameters. This is
|
|
|
|
# used when we can't determine the tool dir at configuration time.
|
2022-03-11 07:58:03 +08:00
|
|
|
config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
|
|
|
|
config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@")
|
2022-03-16 10:13:44 +08:00
|
|
|
config.clang_tools_dir = lit_config.substitute("@CURRENT_TOOLS_DIR@")
|
2012-08-07 15:09:14 +08:00
|
|
|
|
2018-08-31 08:26:46 +08:00
|
|
|
import lit.llvm
|
2018-08-31 06:10:13 +08:00
|
|
|
lit.llvm.initialize(lit_config, config)
|
2018-03-22 02:50:26 +08:00
|
|
|
|
2012-08-07 15:09:14 +08:00
|
|
|
# Let the main config do the real work.
|
2019-03-29 10:46:31 +08:00
|
|
|
lit_config.load_config(config, "@CLANG_TOOLS_SOURCE_DIR@/test/lit.cfg.py")
|