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