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