blob: 1eac25b2983eb0d5547f8f895ae7097f94f33c0c [file] [log] [blame]
Alexey Samsonovd668cd22013-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 Samsonovad785cb2013-06-06 13:28:37 +00007config.llvm_obj_root = "@LLVM_BINARY_DIR@"
8config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
Alexey Samsonovd668cd22013-06-06 12:48:20 +00009config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
10config.llvm_build_mode = "@LLVM_BUILD_MODE@"
11
Alexey Samsonovad785cb2013-06-06 13:28:37 +000012# LLVM tools dir and build mode can be passed in lit parameters,
13# so try to apply substitution.
Alexey Samsonovd668cd22013-06-06 12:48:20 +000014try:
Alexey Samsonovad785cb2013-06-06 13:28:37 +000015 config.llvm_tools_dir = config.llvm_tools_dir % lit.params
Alexey Samsonovd668cd22013-06-06 12:48:20 +000016 config.llvm_build_mode = config.llvm_build_mode % lit.params
17except KeyError,e:
18 key, = e.args
19 lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
20
21# Setup attributes common for all compiler-rt unit tests.
22lit.load_config(config, "@COMPILER_RT_SOURCE_DIR@/lib/lit.common.unit.cfg")