• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@LIT_SITE_CFG_IN_HEADER@
2
3import sys
4
5config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
6config.llvm_src_root = "@LLVM_SOURCE_DIR@"
7config.llvm_obj_root = "@LLVM_BINARY_DIR@"
8config.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.
12try:
13    config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
14except 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
19import lit.llvm
20lit.llvm.initialize(lit_config, config)
21
22# Let the main config do the real work.
23lit_config.load_config(config, "@LLVM_BINARY_DIR@/utils/lit/tests/lit.cfg")
24