2013-06-06 20:35:48 +08:00
|
|
|
## Autogenerated by LLVM/Clang configuration.
|
|
|
|
# Do not edit!
|
|
|
|
|
2014-02-14 17:22:10 +08:00
|
|
|
# Set attribute value if it is unset.
|
|
|
|
def set_default(attr, value):
|
|
|
|
if not getattr(config, attr, None):
|
|
|
|
setattr(config, attr, value)
|
|
|
|
|
2013-06-06 20:35:48 +08:00
|
|
|
# Generic config options for all compiler-rt lit tests.
|
2014-05-21 07:31:26 +08:00
|
|
|
set_default("target_triple", "@COMPILER_RT_TEST_TARGET_TRIPLE@")
|
2014-05-08 03:22:16 +08:00
|
|
|
set_default("target_cflags", "@COMPILER_RT_TEST_COMPILER_CFLAGS@")
|
2014-02-14 17:22:10 +08:00
|
|
|
set_default("host_arch", "@HOST_ARCH@")
|
2014-05-21 07:31:26 +08:00
|
|
|
set_default("target_arch", "@COMPILER_RT_TEST_TARGET_ARCH@")
|
2014-02-14 17:22:10 +08:00
|
|
|
set_default("host_os", "@HOST_OS@")
|
|
|
|
set_default("llvm_build_mode", "@LLVM_BUILD_MODE@")
|
|
|
|
set_default("llvm_src_root", "@LLVM_SOURCE_DIR@")
|
|
|
|
set_default("llvm_obj_root", "@LLVM_BINARY_DIR@")
|
|
|
|
set_default("compiler_rt_src_root", "@COMPILER_RT_SOURCE_DIR@")
|
2014-05-14 06:30:16 +08:00
|
|
|
set_default("compiler_rt_obj_root", "@COMPILER_RT_BINARY_DIR@")
|
2014-02-14 17:22:10 +08:00
|
|
|
set_default("llvm_tools_dir", "@LLVM_TOOLS_DIR@")
|
2015-02-21 04:31:18 +08:00
|
|
|
set_default("llvm_shlib_dir", "@SHLIBDIR@")
|
|
|
|
set_default("gold_executable", "@GOLD_EXECUTABLE@")
|
2014-02-19 21:45:49 +08:00
|
|
|
set_default("clang", "@COMPILER_RT_TEST_COMPILER@")
|
2014-02-19 23:13:14 +08:00
|
|
|
set_default("compiler_id", "@COMPILER_RT_TEST_COMPILER_ID@")
|
2014-02-14 17:22:10 +08:00
|
|
|
set_default("compiler_rt_arch", "@COMPILER_RT_SUPPORTED_ARCH@")
|
|
|
|
set_default("python_executable", "@PYTHON_EXECUTABLE@")
|
|
|
|
set_default("compiler_rt_debug", @COMPILER_RT_DEBUG_PYBOOL@)
|
2014-04-01 21:16:30 +08:00
|
|
|
set_default("compiler_rt_libdir", "@COMPILER_RT_LIBRARY_OUTPUT_DIR@")
|
2014-05-01 05:32:30 +08:00
|
|
|
set_default("emulator", "@COMPILER_RT_EMULATOR@")
|
2015-06-25 08:57:42 +08:00
|
|
|
set_default("sanitizer_can_use_cxxabi", @SANITIZER_CAN_USE_CXXABI_PYBOOL@)
|
2015-08-11 08:33:07 +08:00
|
|
|
set_default("has_lld", @COMPILER_RT_HAS_LLD_SOURCES_PYBOOL@)
|
2013-06-06 20:35:48 +08:00
|
|
|
|
|
|
|
# LLVM tools dir can be passed in lit parameters, so try to
|
|
|
|
# apply substitution.
|
|
|
|
try:
|
2013-08-10 06:14:01 +08:00
|
|
|
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
|
2014-12-13 10:46:56 +08:00
|
|
|
except KeyError as e:
|
2013-06-06 20:35:48 +08:00
|
|
|
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:35:48 +08:00
|
|
|
|
|
|
|
# Setup attributes common for all compiler-rt projects.
|
2014-02-14 19:00:07 +08:00
|
|
|
lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/test/lit.common.cfg")
|