[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / Unit / lit.site.cfg.py.in
blob7fc93b40363175242b413beea38b6d711b9ce485
1 @LIT_SITE_CFG_IN_HEADER@
3 import sys
5 config.llvm_src_root = path(r"@LLVM_SOURCE_DIR@")
6 config.llvm_obj_root = path(r"@LLVM_BINARY_DIR@")
7 config.llvm_tools_dir = path(r"@LLVM_TOOLS_DIR@")
8 config.llvm_build_mode = "@LLVM_BUILD_MODE@"
9 config.enable_shared = @ENABLE_SHARED@
10 config.shlibdir = path(r"@SHLIBDIR@")
12 # Support substitution of the tools_dir and build_mode with user parameters.
13 # This is used when we can't determine the tool dir at configuration time.
14 try:
15 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
16 config.llvm_build_mode = config.llvm_build_mode % lit_config.params
17 config.shlibdir = config.shlibdir % lit_config.params
18 except KeyError:
19 e = sys.exc_info()[1]
20 key, = e.args
21 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
23 # Let the main config do the real work.
24 lit_config.load_config(
25 config, os.path.join(config.llvm_src_root, "test/Unit/lit.cfg.py"))