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@"
|
2014-04-01 21:16:30 +08:00
|
|
|
config.compiler_rt_libdir = "@COMPILER_RT_LIBRARY_OUTPUT_DIR@"
|
2013-06-06 20:48:20 +08:00
|
|
|
config.llvm_build_mode = "@LLVM_BUILD_MODE@"
|
2014-01-31 19:44:32 +08:00
|
|
|
config.host_arch = "@HOST_ARCH@"
|
2013-09-08 21:23:29 +08:00
|
|
|
config.host_os = "@HOST_OS@"
|
2013-06-06 20:48:20 +08:00
|
|
|
|
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-08-10 06:14:01 +08:00
|
|
|
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
|
|
|
|
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
|
2013-06-06 20:48:20 +08:00
|
|
|
except KeyError,e:
|
|
|
|
key, = e.args
|
2013-08-10 06:14:01 +08:00
|
|
|
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
|
2013-06-06 20:48:20 +08:00
|
|
|
|
|
|
|
# Setup attributes common for all compiler-rt unit tests.
|
2014-02-14 19:00:07 +08:00
|
|
|
lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/unittests/lit.common.unit.cfg")
|