1 @LIT_SITE_CFG_IN_HEADER@
5 config
.host_triple
= "@LLVM_HOST_TRIPLE@"
6 config
.target_triple
= "@TARGET_TRIPLE@"
7 config
.llvm_src_root
= path(r
"@LLVM_SOURCE_DIR@")
8 config
.llvm_obj_root
= path(r
"@LLVM_BINARY_DIR@")
9 config
.llvm_tools_dir
= path(r
"@LLVM_TOOLS_DIR@")
10 config
.llvm_lib_dir
= path(r
"@LLVM_LIBS_DIR@")
11 config
.llvm_shlib_dir
= path(r
"@SHLIBDIR@")
12 config
.llvm_shlib_ext
= "@SHLIBEXT@"
13 config
.llvm_plugin_ext
= "@LLVM_PLUGIN_EXT@"
14 config
.llvm_exe_ext
= "@EXEEXT@"
15 config
.lit_tools_dir
= path(r
"@LLVM_LIT_TOOLS_DIR@")
16 config
.errc_messages
= "@LLVM_LIT_ERRC_MESSAGES@"
17 config
.python_executable
= "@Python3_EXECUTABLE@"
18 config
.gold_executable
= "@GOLD_EXECUTABLE@"
19 config
.ld64_executable
= "@LD64_EXECUTABLE@"
20 config
.osx_sysroot
= path(r
"@CMAKE_OSX_SYSROOT@")
21 config
.ocamlfind_executable
= "@OCAMLFIND@"
22 config
.have_ocamlopt
= @HAVE_OCAMLOPT@
23 config
.have_ocaml_ounit
= @HAVE_OCAML_OUNIT@
24 config
.ocaml_flags
= "@OCAMLFLAGS@"
25 config
.include_go_tests
= @LLVM_INCLUDE_GO_TESTS@
26 config
.go_executable
= "@GO_EXECUTABLE@"
27 config
.enable_shared
= @ENABLE_SHARED@
28 config
.enable_assertions
= @ENABLE_ASSERTIONS@
29 config
.targets_to_build
= "@TARGETS_TO_BUILD@"
30 config
.native_target
= "@LLVM_NATIVE_ARCH@"
31 config
.llvm_bindings
= "@LLVM_BINDINGS@".split(' ')
32 config
.host_os
= "@HOST_OS@"
33 config
.host_cc
= "@HOST_CC@"
34 config
.host_cxx
= "@HOST_CXX@"
35 # Note: ldflags can contain double-quoted paths, so must use single quotes here.
36 config
.host_ldflags
= '@HOST_LDFLAGS@'
37 config
.llvm_use_intel_jitevents
= @LLVM_USE_INTEL_JITEVENTS@
38 config
.llvm_use_sanitizer
= "@LLVM_USE_SANITIZER@"
39 config
.have_zlib
= @LLVM_ENABLE_ZLIB@
40 config
.have_libxar
= @LLVM_HAVE_LIBXAR@
41 config
.have_libxml2
= @LLVM_ENABLE_LIBXML2@
42 config
.have_curl
= @LLVM_ENABLE_CURL@
43 config
.have_dia_sdk
= @LLVM_ENABLE_DIA_SDK@
44 config
.enable_ffi
= @LLVM_ENABLE_FFI@
45 config
.build_examples
= @LLVM_BUILD_EXAMPLES@
46 config
.enable_threads
= @LLVM_ENABLE_THREADS@
47 config
.build_shared_libs
= @BUILD_SHARED_LIBS@
48 config
.link_llvm_dylib
= @LLVM_LINK_LLVM_DYLIB@
49 config
.llvm_dylib_version
= "@LLVM_VERSION_MAJOR@@LLVM_VERSION_SUFFIX@"
50 config
.llvm_host_triple
= '@LLVM_HOST_TRIPLE@'
51 config
.host_arch
= "@HOST_ARCH@"
52 config
.have_opt_viewer_modules
= @LLVM_HAVE_OPT_VIEWER_MODULES@
53 config
.libcxx_used
= @LLVM_LIBCXX_USED@
54 config
.has_plugins
= @LLVM_ENABLE_PLUGINS@
55 config
.linked_bye_extension
= @LLVM_BYE_LINK_INTO_TOOLS@
56 config
.have_tf_aot
= @LLVM_HAVE_TF_AOT@
57 config
.have_tf_api
= @LLVM_HAVE_TF_API@
58 config
.llvm_inliner_model_autogenerated
= @LLVM_INLINER_MODEL_AUTOGENERATED@
59 config
.expensive_checks
= @LLVM_ENABLE_EXPENSIVE_CHECKS@
61 # Support substitution of the tools_dir with user parameters. This is
62 # used when we can't determine the tool dir at configuration time.
64 config
.llvm_tools_dir
= config
.llvm_tools_dir
% lit_config
.params
65 config
.llvm_lib_dir
= config
.llvm_lib_dir
% lit_config
.params
66 config
.llvm_shlib_dir
= config
.llvm_shlib_dir
% lit_config
.params
70 lit_config
.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key
,key
))
73 lit
.llvm
.initialize(lit_config
, config
)
75 # Let the main config do the real work.
76 lit_config
.load_config(
77 config
, os
.path
.join(config
.llvm_src_root
, "test/lit.cfg.py"))