Fix a use of an undefined value (the linkage).
[oota-llvm.git] / test / lit.site.cfg.in
1 import sys
2
3 ## Autogenerated by LLVM/Clang configuration.
4 # Do not edit!
5 config.host_triple = "@LLVM_HOST_TRIPLE@"
6 config.target_triple = "@TARGET_TRIPLE@"
7 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
8 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
9 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
10 config.llvm_shlib_dir = "@SHLIBDIR@"
11 config.llvm_shlib_ext = "@SHLIBEXT@"
12 config.llvm_exe_ext = "@EXEEXT@"
13 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
14 config.python_executable = "@PYTHON_EXECUTABLE@"
15 config.ocamlopt_executable = "@OCAMLOPT@"
16 config.enable_shared = @ENABLE_SHARED@
17 config.enable_assertions = @ENABLE_ASSERTIONS@
18 config.targets_to_build = "@TARGETS_TO_BUILD@"
19 config.llvm_bindings = "@LLVM_BINDINGS@"
20 config.host_os = "@HOST_OS@"
21 config.host_arch = "@HOST_ARCH@"
22 config.llvm_use_intel_jitevents = "@LLVM_USE_INTEL_JITEVENTS@"
23 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
24 config.have_zlib = "@HAVE_LIBZ@"
25 config.enable_ffi = "@LLVM_ENABLE_FFI@"
26
27 # Support substitution of the tools_dir with user parameters. This is
28 # used when we can't determine the tool dir at configuration time.
29 try:
30     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
31     config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
32 except KeyError:
33     e = sys.exc_info()[1]
34     key, = e.args
35     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
36
37 # Let the main config do the real work.
38 lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg")