xref: /minix3/external/bsd/llvm/dist/llvm/test/lit.site.cfg.in (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambucimport sys
2f4a2713aSLionel Sambuc
3f4a2713aSLionel Sambuc## Autogenerated by LLVM/Clang configuration.
4f4a2713aSLionel Sambuc# Do not edit!
5f4a2713aSLionel Sambucconfig.host_triple = "@LLVM_HOST_TRIPLE@"
6f4a2713aSLionel Sambucconfig.target_triple = "@TARGET_TRIPLE@"
7f4a2713aSLionel Sambucconfig.llvm_src_root = "@LLVM_SOURCE_DIR@"
8f4a2713aSLionel Sambucconfig.llvm_obj_root = "@LLVM_BINARY_DIR@"
9f4a2713aSLionel Sambucconfig.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
10*0a6a1f1dSLionel Sambucconfig.llvm_lib_dir = "@LLVM_LIBRARY_DIR@"
11f4a2713aSLionel Sambucconfig.llvm_shlib_dir = "@SHLIBDIR@"
12f4a2713aSLionel Sambucconfig.llvm_shlib_ext = "@SHLIBEXT@"
13*0a6a1f1dSLionel Sambucconfig.llvm_exe_ext = "@EXEEXT@"
14f4a2713aSLionel Sambucconfig.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
15f4a2713aSLionel Sambucconfig.python_executable = "@PYTHON_EXECUTABLE@"
16*0a6a1f1dSLionel Sambucconfig.ocamlfind_executable = "@OCAMLFIND@"
17*0a6a1f1dSLionel Sambucconfig.have_ocamlopt = "@HAVE_OCAMLOPT@"
18*0a6a1f1dSLionel Sambucconfig.have_ocaml_ounit = "@HAVE_OCAML_OUNIT@"
19*0a6a1f1dSLionel Sambucconfig.ocaml_flags = "@OCAMLFLAGS@"
20*0a6a1f1dSLionel Sambucconfig.go_executable = "@GO_EXECUTABLE@"
21f4a2713aSLionel Sambucconfig.enable_shared = @ENABLE_SHARED@
22f4a2713aSLionel Sambucconfig.enable_assertions = @ENABLE_ASSERTIONS@
23f4a2713aSLionel Sambucconfig.targets_to_build = "@TARGETS_TO_BUILD@"
24*0a6a1f1dSLionel Sambucconfig.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
25f4a2713aSLionel Sambucconfig.host_os = "@HOST_OS@"
26f4a2713aSLionel Sambucconfig.host_arch = "@HOST_ARCH@"
27*0a6a1f1dSLionel Sambucconfig.host_cc = "@HOST_CC@"
28*0a6a1f1dSLionel Sambucconfig.host_cxx = "@HOST_CXX@"
29*0a6a1f1dSLionel Sambucconfig.host_ldflags = "@HOST_LDFLAGS@"
30f4a2713aSLionel Sambucconfig.llvm_use_intel_jitevents = "@LLVM_USE_INTEL_JITEVENTS@"
31f4a2713aSLionel Sambucconfig.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
32f4a2713aSLionel Sambucconfig.have_zlib = "@HAVE_LIBZ@"
33*0a6a1f1dSLionel Sambucconfig.enable_ffi = "@LLVM_ENABLE_FFI@"
34f4a2713aSLionel Sambuc
35f4a2713aSLionel Sambuc# Support substitution of the tools_dir with user parameters. This is
36f4a2713aSLionel Sambuc# used when we can't determine the tool dir at configuration time.
37f4a2713aSLionel Sambuctry:
38f4a2713aSLionel Sambuc    config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
39*0a6a1f1dSLionel Sambuc    config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
40f4a2713aSLionel Sambucexcept KeyError:
41f4a2713aSLionel Sambuc    e = sys.exc_info()[1]
42f4a2713aSLionel Sambuc    key, = e.args
43f4a2713aSLionel Sambuc    lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
44f4a2713aSLionel Sambuc
45f4a2713aSLionel Sambuc# Let the main config do the real work.
46f4a2713aSLionel Sambuclit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg")
47