blob: 430816b2428041548fb142c1fa38db30e4f43090 [file] [log] [blame]
Alexey Samsonovc05aba72013-06-06 12:48:20 +00001## 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@"
Alexey Samsonove3bf5212013-06-06 13:28:37 +00007config.llvm_obj_root = "@LLVM_BINARY_DIR@"
8config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
Alexey Samsonovc05aba72013-06-06 12:48:20 +00009config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
10config.llvm_build_mode = "@LLVM_BUILD_MODE@"
Alexey Samsonov071cc9e2013-09-08 13:23:29 +000011config.host_os = "@HOST_OS@"
Alexey Samsonovc05aba72013-06-06 12:48:20 +000012
Alexey Samsonove3bf5212013-06-06 13:28:37 +000013# LLVM tools dir and build mode can be passed in lit parameters,
14# so try to apply substitution.
Alexey Samsonovc05aba72013-06-06 12:48:20 +000015try:
Daniel Dunbarbc5dbc42013-08-09 22:14:01 +000016 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
17 config.llvm_build_mode = config.llvm_build_mode % lit_config.params
Alexey Samsonovc05aba72013-06-06 12:48:20 +000018except KeyError,e:
19 key, = e.args
Daniel Dunbarbc5dbc42013-08-09 22:14:01 +000020 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
Alexey Samsonovc05aba72013-06-06 12:48:20 +000021
22# Setup attributes common for all compiler-rt unit tests.
Daniel Dunbarbc5dbc42013-08-09 22:14:01 +000023lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/lib/lit.common.unit.cfg")