1import sys 2 3## Autogenerated by LLVM/Clang configuration. 4# Do not edit! 5config.llvm_src_root = "@LLVM_SOURCE_DIR@" 6config.llvm_obj_root = "@LLVM_BINARY_DIR@" 7config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" 8config.llvm_libs_dir = "@LLVM_LIBS_DIR@" 9config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" 10config.clang_obj_root = "@CLANG_BINARY_DIR@" 11config.target_triple = "@TARGET_TRIPLE@" 12config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@" 13config.clang_arcmt = @ENABLE_CLANG_ARCMT@ 14config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@ 15config.clang_rewriter = @ENABLE_CLANG_REWRITER@ 16config.host_arch = "@HOST_ARCH@" 17 18# Support substitution of the tools and libs dirs with user parameters. This is 19# used when we can't determine the tool dir at configuration time. 20try: 21 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params 22 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params 23except KeyError: 24 e = sys.exc_info()[1] 25 key, = e.args 26 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) 27 28# Let the main config do the real work. 29lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg") 30