Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 1 | ## Autogenerated by LLVM/Clang configuration. |
| 2 | # Do not edit! |
| 3 | |
| 4 | # Set attribute value if it is unset. |
| 5 | def set_default(attr, value): |
| 6 | if not getattr(config, attr, None): |
| 7 | setattr(config, attr, value) |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 8 | |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 9 | # Generic config options for all compiler-rt lit tests. |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 10 | set_default("target_triple", "@COMPILER_RT_DEFAULT_TARGET_TRIPLE@") |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 11 | set_default("target_cflags", "@COMPILER_RT_TEST_COMPILER_CFLAGS@") |
| 12 | set_default("host_arch", "@HOST_ARCH@") |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 13 | set_default("target_arch", "@COMPILER_RT_DEFAULT_TARGET_ARCH@") |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 14 | set_default("host_os", "@HOST_OS@") |
| 15 | set_default("llvm_build_mode", "@LLVM_BUILD_MODE@") |
| 16 | set_default("llvm_src_root", "@LLVM_SOURCE_DIR@") |
| 17 | set_default("llvm_obj_root", "@LLVM_BINARY_DIR@") |
| 18 | set_default("compiler_rt_src_root", "@COMPILER_RT_SOURCE_DIR@") |
| 19 | set_default("compiler_rt_obj_root", "@COMPILER_RT_BINARY_DIR@") |
| 20 | set_default("llvm_tools_dir", "@LLVM_TOOLS_DIR@") |
Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 21 | set_default("llvm_shlib_dir", "@SHLIBDIR@") |
| 22 | set_default("gold_executable", "@GOLD_EXECUTABLE@") |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 23 | set_default("clang", "@COMPILER_RT_TEST_COMPILER@") |
| 24 | set_default("compiler_id", "@COMPILER_RT_TEST_COMPILER_ID@") |
| 25 | set_default("compiler_rt_arch", "@COMPILER_RT_SUPPORTED_ARCH@") |
| 26 | set_default("python_executable", "@PYTHON_EXECUTABLE@") |
| 27 | set_default("compiler_rt_debug", @COMPILER_RT_DEBUG_PYBOOL@) |
| 28 | set_default("compiler_rt_libdir", "@COMPILER_RT_LIBRARY_OUTPUT_DIR@") |
| 29 | set_default("emulator", "@COMPILER_RT_EMULATOR@") |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 30 | set_default("sanitizer_can_use_cxxabi", @SANITIZER_CAN_USE_CXXABI_PYBOOL@) |
| 31 | set_default("has_lld", @COMPILER_RT_HAS_LLD_SOURCES_PYBOOL@) |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 32 | |
| 33 | # LLVM tools dir can be passed in lit parameters, so try to |
| 34 | # apply substitution. |
| 35 | try: |
| 36 | config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params |
Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 37 | except KeyError as e: |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 38 | key, = e.args |
| 39 | lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key)) |
| 40 | |
| 41 | # Setup attributes common for all compiler-rt projects. |
| 42 | lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/test/lit.common.cfg") |