forked from OSchip/llvm-project
28 lines
1.1 KiB
Python
28 lines
1.1 KiB
Python
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
import sys
|
|
|
|
config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
|
|
config.llvm_shlib_dir = lit_config.substitute(path(r"@SHLIBDIR@"))
|
|
config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
|
|
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
|
config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@"
|
|
config.flang_obj_root = "@FLANG_BINARY_DIR@"
|
|
config.flang_src_dir = "@FLANG_SOURCE_DIR@"
|
|
config.flang_tools_dir = lit_config.substitute("@FLANG_TOOLS_DIR@")
|
|
config.flang_intrinsic_modules_dir = "@FLANG_INTRINSIC_MODULES_DIR@"
|
|
config.flang_llvm_tools_dir = "@CMAKE_BINARY_DIR@/bin"
|
|
config.flang_lib_dir = "@CMAKE_BINARY_DIR@/lib"
|
|
config.flang_examples = @FLANG_BUILD_EXAMPLES@
|
|
config.python_executable = "@PYTHON_EXECUTABLE@"
|
|
config.flang_standalone_build = @FLANG_STANDALONE_BUILD@
|
|
config.has_plugins = @LLVM_ENABLE_PLUGINS@
|
|
config.cc = "@CMAKE_C_COMPILER@"
|
|
config.targets_to_build = "@TARGETS_TO_BUILD@"
|
|
|
|
import lit.llvm
|
|
lit.llvm.initialize(lit_config, config)
|
|
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@FLANG_SOURCE_DIR@/test/lit.cfg.py")
|