[lld][WebAssembly] Perform data relocations during start function
[llvm-project.git] / lld / test / Unit / lit.site.cfg.py.in
blob65d9f9d85935fcf5fc4444d46c3a4244ae62613c
1 @LIT_SITE_CFG_IN_HEADER@
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_build_mode = "@LLVM_BUILD_MODE@"
8 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
9 config.lld_obj_root = "@LLD_BINARY_DIR@"
10 config.lld_src_root = "@LLD_SOURCE_DIR@"
11 config.lld_libs_dir = "@LLD_LIBS_DIR@"
12 config.lld_tools_dir = "@LLD_TOOLS_DIR@"
13 config.target_triple = "@TARGET_TRIPLE@"
14 config.python_executable = "@Python3_EXECUTABLE@"
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 config.llvm_build_mode = config.llvm_build_mode % lit_config.params
22 config.lld_libs_dir = config.lld_libs_dir % lit_config.params
23 config.lld_tools_dir = config.lld_tools_dir % lit_config.params
24 except KeyError as e:
25 key, = e.args
26 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
28 # Let the main config do the real work.
29 lit_config.load_config(config, "@LLD_SOURCE_DIR@/test/Unit/lit.cfg.py")