• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import sys
2
3## Autogenerated by LLVM/Clang configuration.
4# Do not edit!
5config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
6config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@"
7config.test_source_root = "@CMAKE_CURRENT_SOURCE_DIR@"
8config.target_triple = "@TARGET_TRIPLE@"
9
10# Support substitution of the tools and libs dirs with user parameters. This is
11# used when we can't determine the tool dir at configuration time.
12try:
13    config.clang_tools_dir = config.clang_tools_dir % lit_config.params
14except KeyError:
15    e = sys.exc_info()[1]
16    key, = e.args
17    lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
18
19# Let the main config do the real work.
20lit_config.load_config(config, "@CLANG_SOURCE_DIR@/utils/perf-training/lit.cfg")
21