• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@LIT_SITE_CFG_IN_HEADER@
2
3# Generic config options for all compiler-rt unit tests.
4config.target_triple = "@TARGET_TRIPLE@"
5config.llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
6config.llvm_obj_root = "@LLVM_BINARY_DIR@"
7config.llvm_tools_dir = "@LLVM_TOOLS_BINARY_DIR@"
8config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
9config.compiler_rt_libdir = "@COMPILER_RT_LIBRARY_OUTPUT_DIR@"
10config.llvm_build_mode = "@LLVM_BUILD_MODE@"
11config.host_arch = "@HOST_ARCH@"
12config.host_os = "@HOST_OS@"
13
14# LLVM tools dir and build mode can be passed in lit parameters,
15# so try to apply substitution.
16try:
17  config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
18  config.llvm_build_mode = config.llvm_build_mode % lit_config.params
19except KeyError as e:
20  key, = e.args
21  lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
22
23# Setup attributes common for all compiler-rt unit tests.
24lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/unittests/lit.common.unit.cfg")
25