annotate test/lit.site.cfg.py.in @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents
children 3a76565eade5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 @LIT_SITE_CFG_IN_HEADER@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 import sys
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 config.host_triple = "@LLVM_HOST_TRIPLE@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 config.target_triple = "@TARGET_TRIPLE@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 config.llvm_lib_dir = "@LLVM_LIBRARY_DIR@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 config.llvm_shlib_dir = "@SHLIBDIR@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 config.llvm_shlib_ext = "@SHLIBEXT@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 config.llvm_exe_ext = "@EXEEXT@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 config.python_executable = "@PYTHON_EXECUTABLE@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 config.gold_executable = "@GOLD_EXECUTABLE@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 config.ld64_executable = "@LD64_EXECUTABLE@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 config.llvm_tool_lto_build = @LLVM_TOOL_LTO_BUILD@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 config.ocamlfind_executable = "@OCAMLFIND@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 config.have_ocamlopt = @HAVE_OCAMLOPT@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 config.have_ocaml_ounit = @HAVE_OCAML_OUNIT@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 config.ocaml_flags = "@OCAMLFLAGS@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 config.include_go_tests = @LLVM_INCLUDE_GO_TESTS@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 config.go_executable = "@GO_EXECUTABLE@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 config.enable_shared = @ENABLE_SHARED@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 config.enable_assertions = @ENABLE_ASSERTIONS@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 config.enable_abi_breaking_checks = "@LLVM_ENABLE_ABI_BREAKING_CHECKS@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 config.targets_to_build = "@TARGETS_TO_BUILD@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 config.native_target = "@LLVM_NATIVE_ARCH@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 config.host_os = "@HOST_OS@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 config.host_arch = "@HOST_ARCH@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 config.host_cc = "@HOST_CC@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 config.host_cxx = "@HOST_CXX@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 config.host_ldflags = "@HOST_LDFLAGS@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 config.llvm_use_intel_jitevents = @LLVM_USE_INTEL_JITEVENTS@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 config.have_zlib = @HAVE_LIBZ@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 config.have_libxar = @HAVE_LIBXAR@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41 config.enable_ffi = @LLVM_ENABLE_FFI@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 config.build_shared_libs = @BUILD_SHARED_LIBS@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44 config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 # Support substitution of the tools_dir with user parameters. This is
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47 # used when we can't determine the tool dir at configuration time.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48 try:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50 config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
51 except KeyError:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
52 e = sys.exc_info()[1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
53 key, = e.args
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
54 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
55
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
56 @LIT_SITE_CFG_IN_FOOTER@
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
57
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
58 # Let the main config do the real work.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
59 lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg.py")