Home | History | Annotate | Download | only in Unit
      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.llvm_src_root = aosp_dir + "/external/llvm"
      9 config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm"
     10 config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin"
     11 config.llvm_build_mode = "Release"
     12 config.enable_shared = 0
     13 config.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.
     17 try:
     18     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
     19     config.llvm_build_mode = config.llvm_build_mode % lit_config.params
     20 except 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.
     26 lit_config.load_config(config, aosp_dir + "/external/llvm/test/Unit/lit.cfg")
     27