Daniel Dunbar | 7af18d3 | 2009-09-17 19:55:53 +0000 | [diff] [blame] | 1 | ## Autogenerated by LLVM/Clang configuration. |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 2 | # Do not edit! |
Daniel Dunbar | 1b720a9 | 2009-09-20 19:04:35 +0000 | [diff] [blame] | 3 | config.llvm_src_root = "@LLVM_SOURCE_DIR@" |
| 4 | config.llvm_obj_root = "@LLVM_BINARY_DIR@" |
Daniel Dunbar | 7af18d3 | 2009-09-17 19:55:53 +0000 | [diff] [blame] | 5 | config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" |
Daniel Dunbar | 9e10cc7 | 2009-09-26 07:36:09 +0000 | [diff] [blame] | 6 | config.llvm_libs_dir = "@LLVM_LIBS_DIR@" |
Daniel Dunbar | 1b720a9 | 2009-09-20 19:04:35 +0000 | [diff] [blame] | 7 | config.clang_obj_root = "@CLANG_BINARY_DIR@" |
Daniel Dunbar | e9a7323 | 2009-11-03 07:25:53 +0000 | [diff] [blame] | 8 | config.target_triple = "@TARGET_TRIPLE@" |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 9 | |
Daniel Dunbar | 1e63492 | 2009-11-07 23:53:32 +0000 | [diff] [blame] | 10 | # Support substitution of the tools and libs dirs with user parameters. This is |
| 11 | # used when we can't determine the tool dir at configuration time. |
| 12 | try: |
| 13 | config.llvm_tools_dir = config.llvm_tools_dir % lit.params |
| 14 | config.llvm_libs_dir = config.llvm_libs_dir % lit.params |
| 15 | except KeyError,e: |
| 16 | key, = e.args |
| 17 | lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) |
| 18 | |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 19 | # Let the main config do the real work. |
Daniel Dunbar | d4347cb | 2009-09-17 00:07:21 +0000 | [diff] [blame] | 20 | lit.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg") |