]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - unittests/lit.common.unit.configured.in
Vendor import of compiler-rt trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / unittests / lit.common.unit.configured.in
1 @LIT_SITE_CFG_IN_HEADER@
2
3 # Generic config options for all compiler-rt unit tests.
4 config.target_triple = "@TARGET_TRIPLE@"
5 config.llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
6 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
7 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
8 config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
9 config.compiler_rt_libdir = "@COMPILER_RT_RESOLVED_LIBRARY_OUTPUT_DIR@"
10 config.llvm_build_mode = "@LLVM_BUILD_MODE@"
11 config.host_arch = "@HOST_ARCH@"
12 config.host_os = "@HOST_OS@"
13 config.llvm_lib_dir = "@LLVM_LIBRARY_DIR@"
14
15 # LLVM tools dir and build mode can be passed in lit parameters,
16 # so try to apply substitution.
17 try:
18   config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
19   config.compiler_rt_libdir = config.compiler_rt_libdir % lit_config.params
20   config.llvm_build_mode = config.llvm_build_mode % 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 # Setup attributes common for all compiler-rt unit tests.
26 lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/unittests/lit.common.unit.cfg")