blob: cff1508fa14389a39d5e8025bb70c901ff095231 [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@"
Andrew Trick70f55bb2011-06-16 21:47:59 +00009config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
Daniel Dunbar1b720a92009-09-20 19:04:35 +000010config.clang_obj_root = "@CLANG_BINARY_DIR@"
Daniel Dunbare9a73232009-11-03 07:25:53 +000011config.target_triple = "@TARGET_TRIPLE@"
Alexey Samsonov48c08342013-03-26 08:28:18 +000012config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
Douglas Gregor95f29c22009-09-16 22:30:48 +000013
Daniel Dunbar1e634922009-11-07 23:53:32 +000014# Support substitution of the tools and libs dirs with user parameters. This is
15# used when we can't determine the tool dir at configuration time.
16try:
17 config.llvm_tools_dir = config.llvm_tools_dir % lit.params
18 config.llvm_libs_dir = config.llvm_libs_dir % lit.params
Daniel Dunbar5329f782013-08-09 00:44:59 +000019except KeyError:
20 e = sys.exc_info()[1]
Daniel Dunbar1e634922009-11-07 23:53:32 +000021 key, = e.args
22 lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
23
Douglas Gregor95f29c22009-09-16 22:30:48 +000024# Let the main config do the real work.
Daniel Dunbard4347cb2009-09-17 00:07:21 +000025lit.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg")