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@" |
Andrew Trick | 70f55bb | 2011-06-16 21:47:59 +0000 | [diff] [blame] | 7 | config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" |
Daniel Dunbar | 1b720a9 | 2009-09-20 19:04:35 +0000 | [diff] [blame] | 8 | config.clang_obj_root = "@CLANG_BINARY_DIR@" |
Daniel Dunbar | e9a7323 | 2009-11-03 07:25:53 +0000 | [diff] [blame] | 9 | config.target_triple = "@TARGET_TRIPLE@" |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 10 | |
Daniel Dunbar | 1e63492 | 2009-11-07 23:53:32 +0000 | [diff] [blame] | 11 | # Support substitution of the tools and libs dirs with user parameters. This is |
| 12 | # used when we can't determine the tool dir at configuration time. |
| 13 | try: |
| 14 | config.llvm_tools_dir = config.llvm_tools_dir % lit.params |
| 15 | config.llvm_libs_dir = config.llvm_libs_dir % lit.params |
| 16 | except KeyError,e: |
| 17 | key, = e.args |
| 18 | lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) |
| 19 | |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 20 | # Let the main config do the real work. |
Daniel Dunbar | d4347cb | 2009-09-17 00:07:21 +0000 | [diff] [blame] | 21 | lit.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg") |