2013-06-06 20:48:20 +08:00
|
|
|
## Autogenerated by LLVM/Clang configuration.
|
|
|
|
# Do not edit!
|
|
|
|
|
|
|
|
# Generic config options for all compiler-rt unit tests.
|
|
|
|
config.target_triple = "@TARGET_TRIPLE@"
|
|
|
|
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
2013-06-06 21:28:37 +08:00
|
|
|
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
|
|
|
|
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
|
2013-06-06 20:48:20 +08:00
|
|
|
config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
|
|
|
|
config.llvm_build_mode = "@LLVM_BUILD_MODE@"
|
|
|
|
|
2013-06-06 21:28:37 +08:00
|
|
|
# LLVM tools dir and build mode can be passed in lit parameters,
|
|
|
|
# so try to apply substitution.
|
2013-06-06 20:48:20 +08:00
|
|
|
try:
|
2013-06-06 21:28:37 +08:00
|
|
|
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
|
2013-06-06 20:48:20 +08:00
|
|
|
config.llvm_build_mode = config.llvm_build_mode % lit.params
|
|
|
|
except KeyError,e:
|
|
|
|
key, = e.args
|
|
|
|
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
|
|
|
|
|
|
|
|
# Setup attributes common for all compiler-rt unit tests.
|
|
|
|
lit.load_config(config, "@COMPILER_RT_SOURCE_DIR@/lib/lit.common.unit.cfg")
|