30 lines · plain
1@LIT_SITE_CFG_IN_HEADER@2 3import sys4 5config.llvm_src_root = "@LLVM_SOURCE_DIR@"6config.llvm_obj_root = "@LLVM_BINARY_DIR@"7config.bolt_obj_root = "@BOLT_BINARY_DIR@"8config.bolt_enable_runtime = @BOLT_ENABLE_RUNTIME@9config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")10config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@")11config.llvm_shlib_dir = lit_config.substitute("@SHLIBDIR@")12config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"13config.host_triple = "@LLVM_HOST_TRIPLE@"14config.target_triple = "@LLVM_TARGET_TRIPLE@"15config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"16config.host_arch = "@HOST_ARCH@"17config.python_executable = "@Python3_EXECUTABLE@"18config.bolt_clang = "@BOLT_CLANG_EXE@"19config.bolt_lld = "@BOLT_LLD_EXE@"20config.targets_to_build = "@BOLT_TARGETS_TO_BUILD@"21config.gnu_ld = "@GNU_LD_EXECUTABLE@"22config.libbolt_rt_instr = "@LIBBOLT_RT_INSTR@"23config.libbolt_rt_hugify = "@LIBBOLT_RT_HUGIFY@"24 25import lit.llvm26lit.llvm.initialize(lit_config, config)27 28# Let the main config do the real work.29lit_config.load_config(config, "@BOLT_SOURCE_DIR@/test/lit.cfg.py")30