Revert r223239, which broke some bots.
[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_lib_dir = "@LIBDIR@"
11 config.llvm_shlib_dir = "@SHLIBDIR@"
12 config.llvm_shlib_ext = "@SHLIBEXT@"
13 config.llvm_exe_ext = "@EXEEXT@"
14 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
15 config.python_executable = "@PYTHON_EXECUTABLE@"
16 config.ocamlfind_executable = "@OCAMLFIND@"
17 config.have_ocamlopt = "@HAVE_OCAMLOPT@"
18 config.have_ocaml_ounit = "@HAVE_OCAML_OUNIT@"
19 config.ocaml_flags = "@OCAMLFLAGS@"
20 config.go_executable = "@GO_EXECUTABLE@"
21 config.enable_shared = @ENABLE_SHARED@
22 config.enable_assertions = @ENABLE_ASSERTIONS@
23 config.targets_to_build = "@TARGETS_TO_BUILD@"
24 config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
25 config.host_os = "@HOST_OS@"
26 config.host_arch = "@HOST_ARCH@"
27 config.host_cc = "@HOST_CC@"
28 config.host_cxx = "@HOST_CXX@"
29 config.host_ldflags = "@HOST_LDFLAGS@"
30 config.llvm_use_intel_jitevents = "@LLVM_USE_INTEL_JITEVENTS@"
31 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
32 config.have_zlib = "@HAVE_LIBZ@"
33 config.enable_ffi = "@LLVM_ENABLE_FFI@"
34
35 # Support substitution of the tools_dir with user parameters. This is
36 # used when we can't determine the tool dir at configuration time.
37 try:
38     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
39     config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
40 except KeyError:
41     e = sys.exc_info()[1]
42     key, = e.args
43     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
44
45 # Let the main config do the real work.
46 lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg")