1@LIT_SITE_CFG_IN_HEADER@ 2 3# Variables needed for common clang config. 4config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" 5config.clang_tools_dir = "@CLANG_TOOLS_DIR@" 6config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" 7config.clang_libs_dir = "@CLANG_LIBS_DIR@" 8config.llvm_libs_dir = "@LLVM_LIBS_DIR@" 9config.target_triple = "@TARGET_TRIPLE@" 10config.host_triple = "@LLVM_HOST_TRIPLE@" 11config.python_executable = "@Python3_EXECUTABLE@" 12 13# Support substitution of the tools and libs dirs with user parameters. This is 14# used when we can't determine the tool dir at configuration time. 15try: 16 config.clang_tools_dir = config.clang_tools_dir % lit_config.params 17 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params 18 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params 19except KeyError: 20 e = sys.exc_info()[1] 21 key, = e.args 22 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) 23 24config.clangd_source_dir = "@CMAKE_CURRENT_SOURCE_DIR@/.." 25config.clangd_binary_dir = "@CMAKE_CURRENT_BINARY_DIR@/.." 26config.clangd_build_xpc = @CLANGD_BUILD_XPC@ 27config.clangd_enable_remote = @CLANGD_ENABLE_REMOTE@ 28config.have_zlib = @LLVM_ENABLE_ZLIB@ 29 30# Delegate logic to lit.cfg.py. 31lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py") 32