1 @LIT_SITE_CFG_IN_HEADER@ 2 3 import sys 4 5 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" 6 config.llvm_src_root = "@LLVM_SOURCE_DIR@" 7 config.llvm_obj_root = "@LLVM_BINARY_DIR@" 8 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" 9 10 # Support substitution of the tools_dir with user parameters. 11 # This is used when we can't determine the tool dir at configuration time. 12 try: 13 config.llvm_tools_dir = config.llvm_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, "@LLVM_BINARY_DIR@/utils/lit/tests/lit.cfg") 21