Home | History | Annotate | Download | only in lit_tests
      1 config.target_triple = "@TARGET_TRIPLE@"
      2 config.host_os = "@HOST_OS@"
      3 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
      4 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
      5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
      6 config.clang = "@LLVM_BINARY_DIR@/bin/clang"
      7 
      8 # LLVM tools dir can be passed in lit parameters, so try to
      9 # apply substitution.
     10 try:
     11   config.llvm_tools_dir = config.llvm_tools_dir % lit.params
     12 except KeyError,e:
     13   key, = e.args
     14   lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
     15 
     16 # Let the main config do the real work.
     17 lit.load_config(config, "@MSAN_SOURCE_DIR@/lit_tests/lit.cfg")
     18