1 | @LIT_SITE_CFG_IN_HEADER@ |
2 | |
3 | import sys |
4 | |
5 | config.clang_tools_dir = "@CLANG_TOOLS_DIR@" |
6 | config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@" |
7 | config.test_source_root = "@CMAKE_CURRENT_SOURCE_DIR@" |
8 | config.target_triple = "@TARGET_TRIPLE@" |
9 | config.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. |
13 | try: |
14 | config.clang_tools_dir = config.clang_tools_dir % lit_config.params |
15 | except 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. |
21 | lit_config.load_config(config, "@CLANG_SOURCE_DIR@/utils/perf-training/order-files.lit.cfg") |
22 | |