1 import sys 2 3 ## Autogenerated by LLVM/Clang configuration. 4 # Do not edit! 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 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. 12 try: 13 config.clang_tools_dir = config.clang_tools_dir % lit_config.params 14 except 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. 20 lit_config.load_config(config, "@CLANG_SOURCE_DIR@/utils/perf-training/lit.cfg") 21