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.host_triple = "x86_64-unknown-linux-gnu" 9 config.target_triple = "x86_64-unknown-linux-gnu" 10 config.llvm_src_root = aosp_dir + "/external/llvm" 11 config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm" 12 config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin" 13 config.llvm_shlib_dir = aosp_dir + "/out/host/linux-x86/lib" 14 config.llvm_shlib_ext = ".so" 15 config.llvm_exe_ext = "" 16 config.lit_tools_dir = "" 17 config.python_executable = "/usr/bin/python" 18 config.ocamlopt_executable = "" 19 config.enable_shared = 0 20 config.enable_assertions = 0 21 config.targets_to_build = " X86 AArch64 ARM Mips" 22 config.llvm_bindings = "" 23 config.host_os = "Linux" 24 config.host_arch = "x86_64" 25 config.llvm_use_intel_jitevents = "OFF" 26 config.llvm_use_sanitizer = "" 27 config.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. 31 try: 32 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params 33 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params 34 except 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. 40 lit_config.load_config(config, aosp_dir + "/external/llvm/test/lit.cfg") 41