Daniel Dunbar | 5329f78 | 2013-08-09 00:44:59 +0000 | [diff] [blame] | 1 | import sys |
| 2 | |
Daniel Dunbar | 7af18d3 | 2009-09-17 19:55:53 +0000 | [diff] [blame] | 3 | ## Autogenerated by LLVM/Clang configuration. |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 4 | # Do not edit! |
Daniel Dunbar | 1b720a9 | 2009-09-20 19:04:35 +0000 | [diff] [blame] | 5 | config.llvm_src_root = "@LLVM_SOURCE_DIR@" |
| 6 | config.llvm_obj_root = "@LLVM_BINARY_DIR@" |
Daniel Dunbar | 7af18d3 | 2009-09-17 19:55:53 +0000 | [diff] [blame] | 7 | config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" |
Daniel Dunbar | 9e10cc7 | 2009-09-26 07:36:09 +0000 | [diff] [blame] | 8 | config.llvm_libs_dir = "@LLVM_LIBS_DIR@" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 9 | config.llvm_shlib_dir = "@SHLIBDIR@" |
| 10 | config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@" |
Andrew Trick | 70f55bb | 2011-06-16 21:47:59 +0000 | [diff] [blame] | 11 | config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" |
Daniel Dunbar | 1b720a9 | 2009-09-20 19:04:35 +0000 | [diff] [blame] | 12 | config.clang_obj_root = "@CLANG_BINARY_DIR@" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 13 | config.clang_tools_dir = "@CLANG_TOOLS_DIR@" |
| 14 | config.host_triple = "@LLVM_HOST_TRIPLE@" |
Daniel Dunbar | e9a7323 | 2009-11-03 07:25:53 +0000 | [diff] [blame] | 15 | config.target_triple = "@TARGET_TRIPLE@" |
Alexey Samsonov | 48c0834 | 2013-03-26 08:28:18 +0000 | [diff] [blame] | 16 | config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@" |
Roman Divacky | 2450b82 | 2013-08-27 19:27:35 +0000 | [diff] [blame] | 17 | config.clang_arcmt = @ENABLE_CLANG_ARCMT@ |
| 18 | config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@ |
| 19 | config.clang_rewriter = @ENABLE_CLANG_REWRITER@ |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 20 | config.clang_examples = @ENABLE_CLANG_EXAMPLES@ |
| 21 | config.enable_shared = @ENABLE_SHARED@ |
Amaury de la Vieuville | 0909859 | 2013-09-13 11:02:31 +0000 | [diff] [blame] | 22 | config.host_arch = "@HOST_ARCH@" |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 23 | |
Daniel Dunbar | 1e63492 | 2009-11-07 23:53:32 +0000 | [diff] [blame] | 24 | # Support substitution of the tools and libs dirs with user parameters. This is |
| 25 | # used when we can't determine the tool dir at configuration time. |
| 26 | try: |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 27 | config.clang_tools_dir = config.clang_tools_dir % lit_config.params |
Daniel Dunbar | 4c87ca4 | 2013-08-09 14:43:04 +0000 | [diff] [blame] | 28 | config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 29 | config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params |
Daniel Dunbar | 4c87ca4 | 2013-08-09 14:43:04 +0000 | [diff] [blame] | 30 | config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params |
Daniel Dunbar | 5329f78 | 2013-08-09 00:44:59 +0000 | [diff] [blame] | 31 | except KeyError: |
| 32 | e = sys.exc_info()[1] |
Daniel Dunbar | 1e63492 | 2009-11-07 23:53:32 +0000 | [diff] [blame] | 33 | key, = e.args |
Daniel Dunbar | 4c87ca4 | 2013-08-09 14:43:04 +0000 | [diff] [blame] | 34 | lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) |
Daniel Dunbar | 1e63492 | 2009-11-07 23:53:32 +0000 | [diff] [blame] | 35 | |
Douglas Gregor | 95f29c2 | 2009-09-16 22:30:48 +0000 | [diff] [blame] | 36 | # Let the main config do the real work. |
Daniel Dunbar | 4c87ca4 | 2013-08-09 14:43:04 +0000 | [diff] [blame] | 37 | lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg") |