blob: 18adf6482a58673a0538dec768846fb737411d92 [file] [log] [blame]
Stephen Hines2d1fdb22014-05-28 23:58:16 -07001## Autogenerated by LLVM/Clang configuration.
2# Do not edit!
3
4# Generic config options for all compiler-rt unit tests.
5config.target_triple = "@TARGET_TRIPLE@"
6config.llvm_src_root = "@LLVM_SOURCE_DIR@"
7config.llvm_obj_root = "@LLVM_BINARY_DIR@"
8config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
9config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
10config.compiler_rt_libdir = "@COMPILER_RT_LIBRARY_OUTPUT_DIR@"
11config.llvm_build_mode = "@LLVM_BUILD_MODE@"
12config.host_arch = "@HOST_ARCH@"
13config.host_os = "@HOST_OS@"
14
15# LLVM tools dir and build mode can be passed in lit parameters,
16# so try to apply substitution.
17try:
18 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
19 config.llvm_build_mode = config.llvm_build_mode % lit_config.params
Stephen Hines86277eb2015-03-23 12:06:32 -070020except KeyError as e:
Stephen Hines2d1fdb22014-05-28 23:58:16 -070021 key, = e.args
22 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
23
24# Setup attributes common for all compiler-rt unit tests.
25lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/unittests/lit.common.unit.cfg")