[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git] / llvm / test / lit.site.cfg.py.in
blob911d5091ef1eb9b0f36915ce752e0bc27a08eae1
1 @LIT_SITE_CFG_IN_HEADER@
3 import sys
5 config.host_triple = "@LLVM_HOST_TRIPLE@"
6 config.target_triple = "@LLVM_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 = lit_config.substitute(path(r"@LLVM_TOOLS_DIR@"))
10 config.llvm_lib_dir = lit_config.substitute(path(r"@LLVM_LIBS_DIR@"))
11 config.llvm_shlib_dir = lit_config.substitute(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.ocaml_flags = "@OCAMLFLAGS@"
24 config.ptxas_executable = "@PTXAS_EXECUTABLE@"
25 config.enable_assertions = @ENABLE_ASSERTIONS@
26 config.targets_to_build = "@TARGETS_TO_BUILD@"
27 config.native_target = "@LLVM_NATIVE_ARCH@"
28 config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
29 config.host_os = "@HOST_OS@"
30 config.host_cc = "@HOST_CC@"
31 config.host_cxx = "@HOST_CXX@"
32 # Note: ldflags can contain double-quoted paths, so must use single quotes here.
33 config.host_ldflags = '@HOST_LDFLAGS@'
34 config.llvm_use_intel_jitevents = @LLVM_USE_INTEL_JITEVENTS@
35 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
36 config.have_zlib = @LLVM_ENABLE_ZLIB@
37 config.have_zstd = @LLVM_ENABLE_ZSTD@
38 config.have_libxar = @LLVM_HAVE_LIBXAR@
39 config.have_libxml2 = @LLVM_ENABLE_LIBXML2@
40 config.have_curl = @LLVM_ENABLE_CURL@
41 config.have_httplib = @LLVM_ENABLE_HTTPLIB@
42 config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@
43 config.enable_ffi = @LLVM_ENABLE_FFI@
44 config.build_examples = @LLVM_BUILD_EXAMPLES@
45 config.enable_threads = @LLVM_ENABLE_THREADS@
46 config.build_shared_libs = @BUILD_SHARED_LIBS@
47 config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@
48 config.llvm_dylib_version = "@LLVM_VERSION_MAJOR@@LLVM_VERSION_SUFFIX@"
49 config.llvm_host_triple = '@LLVM_HOST_TRIPLE@'
50 config.host_arch = "@HOST_ARCH@"
51 config.have_opt_viewer_modules = @LLVM_HAVE_OPT_VIEWER_MODULES@
52 config.libcxx_used = @LLVM_LIBCXX_USED@
53 config.has_plugins = @LLVM_ENABLE_PLUGINS@
54 config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
55 config.linked_exampleirtransforms_extension = @LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS@
56 config.have_tf_aot = @LLVM_HAVE_TF_AOT@
57 config.have_tflite = @LLVM_HAVE_TFLITE@
58 config.llvm_inliner_model_autogenerated = @LLVM_INLINER_MODEL_AUTOGENERATED@
59 config.llvm_raevict_model_autogenerated = @LLVM_RAEVICT_MODEL_AUTOGENERATED@
60 config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@
61 config.dxil_tests = @LLVM_INCLUDE_DXIL_TESTS@
62 config.have_llvm_driver = @LLVM_TOOL_LLVM_DRIVER_BUILD@
64 import lit.llvm
65 lit.llvm.initialize(lit_config, config)
67 # Let the main config do the real work.
68 lit_config.load_config(
69 config, os.path.join(config.llvm_src_root, "test/lit.cfg.py"))