blob: 332bcec14874ef74a776be8284a16a006dd03dba [file] [log] [blame]
Daniel Dunbar5329f782013-08-09 00:44:59 +00001import sys
2
Daniel Dunbar7af18d32009-09-17 19:55:53 +00003## Autogenerated by LLVM/Clang configuration.
Douglas Gregor95f29c22009-09-16 22:30:48 +00004# Do not edit!
Daniel Dunbar1b720a92009-09-20 19:04:35 +00005config.llvm_src_root = "@LLVM_SOURCE_DIR@"
6config.llvm_obj_root = "@LLVM_BINARY_DIR@"
Daniel Dunbar7af18d32009-09-17 19:55:53 +00007config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
Daniel Dunbar9e10cc72009-09-26 07:36:09 +00008config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
Stephen Hines651f13c2014-04-23 16:59:28 -07009config.llvm_shlib_dir = "@SHLIBDIR@"
10config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
Andrew Trick70f55bb2011-06-16 21:47:59 +000011config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
Daniel Dunbar1b720a92009-09-20 19:04:35 +000012config.clang_obj_root = "@CLANG_BINARY_DIR@"
Stephen Hines651f13c2014-04-23 16:59:28 -070013config.clang_tools_dir = "@CLANG_TOOLS_DIR@"
14config.host_triple = "@LLVM_HOST_TRIPLE@"
Daniel Dunbare9a73232009-11-03 07:25:53 +000015config.target_triple = "@TARGET_TRIPLE@"
Alexey Samsonov48c08342013-03-26 08:28:18 +000016config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
Roman Divacky2450b822013-08-27 19:27:35 +000017config.clang_arcmt = @ENABLE_CLANG_ARCMT@
18config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@
Stephen Hines651f13c2014-04-23 16:59:28 -070019config.clang_examples = @ENABLE_CLANG_EXAMPLES@
20config.enable_shared = @ENABLE_SHARED@
Stephen Hines0e2c34f2015-03-23 12:09:02 -070021config.enable_backtrace = "@ENABLE_BACKTRACES@"
Amaury de la Vieuville09098592013-09-13 11:02:31 +000022config.host_arch = "@HOST_ARCH@"
Douglas Gregor95f29c22009-09-16 22:30:48 +000023
Daniel Dunbar1e634922009-11-07 23:53:32 +000024# 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.
26try:
Stephen Hines651f13c2014-04-23 16:59:28 -070027 config.clang_tools_dir = config.clang_tools_dir % lit_config.params
Daniel Dunbar4c87ca42013-08-09 14:43:04 +000028 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
Stephen Hines651f13c2014-04-23 16:59:28 -070029 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
Daniel Dunbar4c87ca42013-08-09 14:43:04 +000030 config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
Daniel Dunbar5329f782013-08-09 00:44:59 +000031except KeyError:
32 e = sys.exc_info()[1]
Daniel Dunbar1e634922009-11-07 23:53:32 +000033 key, = e.args
Daniel Dunbar4c87ca42013-08-09 14:43:04 +000034 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
Daniel Dunbar1e634922009-11-07 23:53:32 +000035
Douglas Gregor95f29c22009-09-16 22:30:48 +000036# Let the main config do the real work.
Daniel Dunbar4c87ca42013-08-09 14:43:04 +000037lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg")