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