blob: 9f4d224eb6558493650a3155a3659d5e23933288 [file] [log] [blame]
Jeffrey Yasskin7a178892011-02-03 04:51:52 +00001## Autogenerated by LLVM/Clang configuration.
2# Do not edit!
3config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7config.llvm_build_mode = "@LLVM_BUILD_MODE@"
8config.clang_obj_root = "@CLANG_BINARY_DIR@"
9config.enable_shared = @ENABLE_SHARED@
10config.shlibdir = "@SHLIBDIR@"
11config.shlibpath_var = "@SHLIBPATH_VAR@"
12config.target_triple = "@TARGET_TRIPLE@"
13
Jeffrey Yasskin718b01d2011-02-15 07:54:28 +000014# Support substitution of the tools_dir, libs_dirs, and build_mode with user
15# parameters. This is used when we can't determine the tool dir at
16# configuration time.
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000017try:
18 config.llvm_tools_dir = config.llvm_tools_dir % lit.params
19 config.llvm_libs_dir = config.llvm_libs_dir % lit.params
Jeffrey Yasskin718b01d2011-02-15 07:54:28 +000020 config.llvm_build_mode = config.llvm_build_mode % lit.params
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000021except KeyError,e:
22 key, = e.args
23 lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
24
25# Let the main config do the real work.
26lit.load_config(config, "@CLANG_SOURCE_DIR@/test/Unit/lit.cfg")