7ff8155dff60dbe61196439d9284fbfd1b4c187f
[oota-llvm.git] / test / Unit / lit.site.cfg.in
1 import sys
2
3 ## Autogenerated by LLVM/Clang configuration.
4 # Do not edit!
5 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
6 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
7 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
8 config.llvm_build_mode = "@LLVM_BUILD_MODE@"
9 config.enable_shared = @ENABLE_SHARED@
10 config.shlibdir = "@SHLIBDIR@"
11 config.shlibpath_var = "@SHLIBPATH_VAR@"
12
13 # Support substitution of the tools_dir and build_mode with user parameters.
14 # This is used when we can't determine the tool dir at configuration time.
15 try:
16     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
17     config.llvm_build_mode = config.llvm_build_mode % lit_config.params
18 except KeyError:
19     e = sys.exc_info()[1]
20     key, = e.args
21     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
22
23 # Let the main config do the real work.
24 lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/Unit/lit.cfg")