Home | History | Annotate | Download | only in test
      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.go_executable = ""
     10 config.gold_executable = "ld"
     11 config.ld64_executable = "ld"
     12 config.have_ocamlopt = ""
     13 config.have_ocaml_ounit = ""
     14 config.host_triple = "x86_64-unknown-linux-gnu"
     15 config.target_triple = "x86_64-unknown-linux-gnu"
     16 config.llvm_src_root = aosp_dir + "/external/llvm"
     17 config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm"
     18 config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin"
     19 config.llvm_shlib_dir = aosp_dir + "/out/host/linux-x86/lib64"
     20 config.llvm_shlib_ext = ".so"
     21 config.llvm_exe_ext = ""
     22 config.lit_tools_dir = ""
     23 config.python_executable = "/usr/bin/python"
     24 config.ocaml_flags = ""
     25 config.ocamlfind_executable = ""
     26 config.enable_shared = 0
     27 config.enable_assertions = 0
     28 config.targets_to_build = " X86 AArch64 ARM Mips"
     29 config.llvm_bindings = ""
     30 config.host_cc = "clang"
     31 config.host_cxx = "clang++"
     32 config.host_ldflags = ""
     33 config.host_os = "Linux"
     34 config.host_arch = "x86_64"
     35 config.llvm_use_intel_jitevents = "OFF"
     36 config.llvm_use_sanitizer = ""
     37 config.have_zlib = ""
     38 config.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.
     42 try:
     43     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
     44     config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
     45 except 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.
     51 lit_config.load_config(config, aosp_dir + "/external/llvm/test/lit.cfg")
     52