1ef7b8423SNico Weber@LIT_SITE_CFG_IN_HEADER@ 2ef7b8423SNico Weber 3ef7b8423SNico Weberimport sys 4ef7b8423SNico Weber 584f137a5SJameson Nashconfig.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@" 6ef7b8423SNico Weberconfig.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" 7ef7b8423SNico Weberconfig.clang_tools_binary_dir = "@CLANG_TOOLS_BINARY_DIR@" 82b69eb4aSSam McCallconfig.llvm_shlib_dir = "@SHLIBDIR@" 9216833b3SSaleem Abdulrasoolconfig.python_executable = "@Python3_EXECUTABLE@" 100c0f6cfbSPetr Hosekconfig.target_triple = "@LLVM_TARGET_TRIPLE@" 112b69eb4aSSam McCallconfig.host_triple = "@LLVM_HOST_TRIPLE@" 1233c9dbbdSNico Weberconfig.clang_tidy_staticanalyzer = @CLANG_TIDY_ENABLE_STATIC_ANALYZER@ 13*f0fbccb1SIgor Kudrinconfig.has_plugins = @CLANG_PLUGIN_SUPPORT@ 14ef7b8423SNico Weber# Support substitution of the tools and libs dirs with user parameters. This is 15ef7b8423SNico Weber# used when we can't determine the tool dir at configuration time. 16fa1019faSSam McCallconfig.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@") 17fa1019faSSam McCallconfig.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@") 1857ee624dSSam McCallconfig.clang_tools_dir = lit_config.substitute("@CURRENT_TOOLS_DIR@") 19ef7b8423SNico Weber 20ef7b8423SNico Weberimport lit.llvm 21ef7b8423SNico Weberlit.llvm.initialize(lit_config, config) 22ef7b8423SNico Weber 23ef7b8423SNico Weber# Let the main config do the real work. 24ef7b8423SNico Weberlit_config.load_config(config, "@CLANG_TOOLS_SOURCE_DIR@/test/lit.cfg.py") 25