1 import sys 2 3 ## Autogenerated by LLVM/Clang configuration. 4 # Do not edit! 5 config.host_triple = "@LLVM_HOST_TRIPLE@" 6 config.target_triple = "@TARGET_TRIPLE@" 7 config.llvm_src_root = "@LLVM_SOURCE_DIR@" 8 config.llvm_obj_root = "@LLVM_BINARY_DIR@" 9 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" 10 config.llvm_shlib_dir = "@SHLIBDIR@" 11 config.llvm_shlib_ext = "@SHLIBEXT@" 12 config.llvm_exe_ext = "@EXEEXT@" 13 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" 14 config.python_executable = "@PYTHON_EXECUTABLE@" 15 config.ocamlopt_executable = "@OCAMLOPT@" 16 config.enable_shared = @ENABLE_SHARED@ 17 config.enable_assertions = @ENABLE_ASSERTIONS@ 18 config.targets_to_build = "@TARGETS_TO_BUILD@" 19 config.llvm_bindings = "@LLVM_BINDINGS@" 20 config.host_os = "@HOST_OS@" 21 config.host_arch = "@HOST_ARCH@" 22 config.llvm_use_intel_jitevents = "@LLVM_USE_INTEL_JITEVENTS@" 23 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@" 24 config.have_zlib = "@HAVE_LIBZ@" 25 26 # Support substitution of the tools_dir with user parameters. This is 27 # used when we can't determine the tool dir at configuration time. 28 try: 29 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params 30 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params 31 except KeyError: 32 e = sys.exc_info()[1] 33 key, = e.args 34 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) 35 36 # Let the main config do the real work. 37 lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg") 38