2016-04-16 15:09:39 +08:00
|
|
|
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
|
2018-03-24 03:57:25 +08:00
|
|
|
import lit.util
|
|
|
|
|
|
|
|
config.have_dia_sdk = lit.util.pythonize_bool("@LLVM_ENABLE_DIA_SDK@")
|
2011-12-18 16:27:59 +08:00
|
|
|
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
|
|
|
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
|
2022-03-16 06:15:56 +08:00
|
|
|
config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
|
|
|
|
config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@")
|
2022-03-24 14:52:16 +08:00
|
|
|
config.llvm_shlib_dir = "@SHLIBDIR@"
|
|
|
|
config.llvm_shlib_ext = "@SHLIBEXT@"
|
2011-12-18 16:27:59 +08:00
|
|
|
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
2022-07-01 23:45:09 +08:00
|
|
|
config.enable_backtrace = @ENABLE_BACKTRACES@
|
2021-03-16 03:56:08 +08:00
|
|
|
config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@"
|
2011-12-18 16:27:59 +08:00
|
|
|
config.lld_obj_root = "@LLD_BINARY_DIR@"
|
2022-03-16 10:13:44 +08:00
|
|
|
config.lld_libs_dir = lit_config.substitute("@CURRENT_LIBS_DIR@")
|
|
|
|
config.lld_tools_dir = lit_config.substitute("@CURRENT_TOOLS_DIR@")
|
2021-12-02 17:04:46 +08:00
|
|
|
config.target_triple = "@LLVM_TARGET_TRIPLE@"
|
2020-04-29 09:37:28 +08:00
|
|
|
config.python_executable = "@Python3_EXECUTABLE@"
|
2020-05-01 04:07:13 +08:00
|
|
|
config.have_zlib = @LLVM_ENABLE_ZLIB@
|
2021-05-19 23:07:39 +08:00
|
|
|
config.have_libxar = @LLVM_HAVE_LIBXAR@
|
2020-07-25 06:47:38 +08:00
|
|
|
config.have_libxml2 = @LLVM_ENABLE_LIBXML2@
|
2019-03-02 02:53:41 +08:00
|
|
|
config.sizeof_void_p = @CMAKE_SIZEOF_VOID_P@
|
2020-10-08 14:34:18 +08:00
|
|
|
config.ld_lld_default_mingw = @LLD_DEFAULT_LD_LLD_IS_MINGW@
|
2022-03-24 14:52:16 +08:00
|
|
|
config.build_examples = @LLVM_BUILD_EXAMPLES@
|
|
|
|
config.has_plugins = @LLVM_ENABLE_PLUGINS@
|
|
|
|
config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
|
2011-12-18 16:27:59 +08:00
|
|
|
|
2018-08-31 08:23:09 +08:00
|
|
|
import lit.llvm
|
2018-08-31 06:12:16 +08:00
|
|
|
lit.llvm.initialize(lit_config, config)
|
2017-09-19 06:26:48 +08:00
|
|
|
|
2011-12-18 16:27:59 +08:00
|
|
|
# Let the main config do the real work.
|
2017-09-22 01:38:13 +08:00
|
|
|
lit_config.load_config(config, "@LLD_SOURCE_DIR@/test/lit.cfg.py")
|