llvm-project
18 строк · 704.0 Байт
1@LIT_SITE_CFG_IN_HEADER@
2
3config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
6config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@")
7config.llvm_build_mode = lit_config.substitute("@LLVM_BUILD_MODE@")
8config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
9config.lldb_obj_root = "@LLDB_BINARY_DIR@"
10config.lldb_src_root = "@LLDB_SOURCE_DIR@"
11config.target_triple = "@LLVM_TARGET_TRIPLE@"
12config.python_executable = "@Python3_EXECUTABLE@"
13
14import lit.llvm
15lit.llvm.initialize(lit_config, config)
16
17# Let the main config do the real work.
18lit_config.load_config(config, "@LLDB_SOURCE_DIR@/test/lit.cfg.py")
19