1import sys 2import os 3 4aosp_dir = os.getenv("ANDROID_BUILD_TOP") 5 6## Autogenerated by LLVM/Clang configuration. 7# Do not edit! 8config.host_triple = "x86_64-unknown-linux-gnu" 9config.target_triple = "x86_64-unknown-linux-gnu" 10config.llvm_src_root = aosp_dir + "/external/llvm" 11config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm" 12config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin" 13config.llvm_shlib_dir = aosp_dir + "/out/host/linux-x86/lib" 14config.llvm_shlib_ext = ".so" 15config.llvm_exe_ext = "" 16config.lit_tools_dir = "" 17config.python_executable = "/usr/bin/python" 18config.ocamlopt_executable = "" 19config.enable_shared = 0 20config.enable_assertions = 0 21config.targets_to_build = " X86 AArch64 ARM Mips" 22config.llvm_bindings = "" 23config.host_os = "Linux" 24config.host_arch = "x86_64" 25config.llvm_use_intel_jitevents = "OFF" 26config.llvm_use_sanitizer = "" 27config.have_zlib = "0" 28 29# Support substitution of the tools_dir with user parameters. This is 30# used when we can't determine the tool dir at configuration time. 31try: 32 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params 33 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params 34except KeyError: 35 e = sys.exc_info()[1] 36 key, = e.args 37 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) 38 39# Let the main config do the real work. 40lit_config.load_config(config, aosp_dir + "/external/llvm/test/lit.cfg") 41