]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/lit.site.cfg.py.in
Vendor import of lld trunk r321414:
[FreeBSD/FreeBSD.git] / test / lit.site.cfg.py.in
1 @LIT_SITE_CFG_IN_HEADER@
2
3 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7 config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@"
8 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
9 config.lld_obj_root = "@LLD_BINARY_DIR@"
10 config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
11 config.lld_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR@"
12 config.target_triple = "@TARGET_TRIPLE@"
13 config.python_executable = "@PYTHON_EXECUTABLE@"
14 config.have_zlib = @HAVE_LIBZ@
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.
18 try:
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 except KeyError as e:
22     key, = e.args
23     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
24
25 @LIT_SITE_CFG_IN_FOOTER@
26
27 # Let the main config do the real work.
28 lit_config.load_config(config, "@LLD_SOURCE_DIR@/test/lit.cfg.py")