1@LIT_SITE_CFG_IN_HEADER@
2
3config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7config.llvm_build_mode = "@LLVM_BUILD_MODE@"
8config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
9config.flang_obj_root = "@FLANG_BINARY_DIR@"
10config.flang_src_root = "@FLANG_SOURCE_DIR@"
11config.flang_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
12config.flang_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR@"
13config.target_triple = "@TARGET_TRIPLE@"
14config.python_executable = "@Python3_EXECUTABLE@"
15
16# Support substitution of the tools and libs dirs with user parameters. This is
17# used when we can't determine the tool dir at configuration time.
18try:
19    config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
20    config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
21    config.llvm_build_mode = config.llvm_build_mode % lit_config.params
22except KeyError as e:
23    key, = e.args
24    lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
25
26# Let the main config do the real work.
27lit_config.load_config(config, "@FLANG_SOURCE_DIR@/test/NonGtestUnit/lit.cfg.py")
28