1import sys 2import os 3 4aosp_dir = os.getenv("ANDROID_BUILD_TOP") 5 6## Autogenerated by LLVM/Clang configuration. 7# Do not edit! 8config.llvm_src_root = aosp_dir + "/external/llvm" 9config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm" 10config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin" 11config.llvm_build_mode = "Release" 12config.enable_shared = 0 13config.shlibdir = aosp_dir + "/out/host/linux-x86/lib" 14 15# Support substitution of the tools_dir and build_mode with user parameters. 16# This is used when we can't determine the tool dir at configuration time. 17try: 18 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params 19 config.llvm_build_mode = config.llvm_build_mode % lit_config.params 20except KeyError: 21 e = sys.exc_info()[1] 22 key, = e.args 23 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) 24 25# Let the main config do the real work. 26lit_config.load_config(config, aosp_dir + "/external/llvm/test/Unit/lit.cfg") 27