• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@LIT_SITE_CFG_IN_HEADER@
2
3import sys
4
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@"
9config.python_exe = "@PYTHON_EXECUTABLE@"
10
11# Support substitution of the tools and libs dirs with user parameters. This is
12# used when we can't determine the tool dir at configuration time.
13try:
14    config.clang_tools_dir = config.clang_tools_dir % lit_config.params
15except KeyError:
16    e = sys.exc_info()[1]
17    key, = e.args
18    lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
19
20# Let the main config do the real work.
21lit_config.load_config(config, "@CLANG_SOURCE_DIR@/utils/perf-training/order-files.lit.cfg")
22