Alexey Samsonov | c05aba7 | 2013-06-06 12:48:20 +0000 | [diff] [blame] | 1 | ## Autogenerated by LLVM/Clang configuration. |
| 2 | # Do not edit! |
| 3 | |
| 4 | # Generic config options for all compiler-rt unit tests. |
| 5 | config.target_triple = "@TARGET_TRIPLE@" |
| 6 | config.llvm_src_root = "@LLVM_SOURCE_DIR@" |
Alexey Samsonov | e3bf521 | 2013-06-06 13:28:37 +0000 | [diff] [blame] | 7 | config.llvm_obj_root = "@LLVM_BINARY_DIR@" |
| 8 | config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" |
Alexey Samsonov | c05aba7 | 2013-06-06 12:48:20 +0000 | [diff] [blame] | 9 | config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@" |
| 10 | config.llvm_build_mode = "@LLVM_BUILD_MODE@" |
Alexey Samsonov | 071cc9e | 2013-09-08 13:23:29 +0000 | [diff] [blame^] | 11 | config.host_os = "@HOST_OS@" |
Alexey Samsonov | c05aba7 | 2013-06-06 12:48:20 +0000 | [diff] [blame] | 12 | |
Alexey Samsonov | e3bf521 | 2013-06-06 13:28:37 +0000 | [diff] [blame] | 13 | # LLVM tools dir and build mode can be passed in lit parameters, |
| 14 | # so try to apply substitution. |
Alexey Samsonov | c05aba7 | 2013-06-06 12:48:20 +0000 | [diff] [blame] | 15 | try: |
Daniel Dunbar | bc5dbc4 | 2013-08-09 22:14:01 +0000 | [diff] [blame] | 16 | config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params |
| 17 | config.llvm_build_mode = config.llvm_build_mode % lit_config.params |
Alexey Samsonov | c05aba7 | 2013-06-06 12:48:20 +0000 | [diff] [blame] | 18 | except KeyError,e: |
| 19 | key, = e.args |
Daniel Dunbar | bc5dbc4 | 2013-08-09 22:14:01 +0000 | [diff] [blame] | 20 | lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key)) |
Alexey Samsonov | c05aba7 | 2013-06-06 12:48:20 +0000 | [diff] [blame] | 21 | |
| 22 | # Setup attributes common for all compiler-rt unit tests. |
Daniel Dunbar | bc5dbc4 | 2013-08-09 22:14:01 +0000 | [diff] [blame] | 23 | lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/lib/lit.common.unit.cfg") |