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