Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / lit.site.cfg.py.in
blob1cbd876ac5bb93ad4debbba72a26cb92134a32cd
1 @LIT_SITE_CFG_IN_HEADER@
3 import sys
5 config.llvm_src_root = path(r"@LLVM_SOURCE_DIR@")
6 config.llvm_obj_root = path(r"@LLVM_BINARY_DIR@")
7 config.llvm_tools_dir = lit_config.substitute(path(r"@LLVM_TOOLS_DIR@"))
8 config.llvm_libs_dir = lit_config.substitute(path(r"@LLVM_LIBS_DIR@"))
9 config.llvm_shlib_dir = lit_config.substitute(path(r"@SHLIBDIR@"))
10 config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
11 config.lit_tools_dir = path(r"@LLVM_LIT_TOOLS_DIR@")
12 config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@"
13 config.clang_lit_site_cfg = __file__
14 config.clang_obj_root = path(r"@CLANG_BINARY_DIR@")
15 config.clang_src_dir = path(r"@CLANG_SOURCE_DIR@")
16 config.clang_tools_dir = lit_config.substitute(path(r"@CURRENT_TOOLS_DIR@"))
17 config.clang_lib_dir = path(r"@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
18 config.host_triple = "@LLVM_HOST_TRIPLE@"
19 config.target_triple = "@LLVM_TARGET_TRIPLE@"
20 config.host_cc = "@CMAKE_C_COMPILER@"
21 config.host_cxx = "@CMAKE_CXX_COMPILER@"
22 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
23 config.have_zlib = @LLVM_ENABLE_ZLIB@
24 config.have_zstd = @LLVM_ENABLE_ZSTD@
25 config.clang_arcmt = @CLANG_ENABLE_ARCMT@
26 config.clang_default_pie_on_linux = @CLANG_DEFAULT_PIE_ON_LINUX@
27 config.clang_default_cxx_stdlib = "@CLANG_DEFAULT_CXX_STDLIB@"
28 config.clang_staticanalyzer = @CLANG_ENABLE_STATIC_ANALYZER@
29 config.clang_staticanalyzer_z3 = @LLVM_WITH_Z3@
30 config.clang_enable_cir = @CLANG_ENABLE_CIR@
31 config.clang_examples = @CLANG_BUILD_EXAMPLES@
32 config.enable_shared = @ENABLE_SHARED@
33 config.enable_backtrace = @ENABLE_BACKTRACES@
34 config.enable_threads = @LLVM_ENABLE_THREADS@
35 config.reverse_iteration = @LLVM_ENABLE_REVERSE_ITERATION@
36 config.host_arch = "@HOST_ARCH@"
37 config.perl_executable = "@PERL_EXECUTABLE@"
38 config.python_executable = "@Python3_EXECUTABLE@"
39 config.use_z3_solver = lit_config.params.get('USE_Z3_SOLVER', "@USE_Z3_SOLVER@")
40 config.has_plugins = @CLANG_PLUGIN_SUPPORT@
41 config.clang_vendor_uti = "@CLANG_VENDOR_UTI@"
42 config.llvm_external_lit = path(r"@LLVM_EXTERNAL_LIT@")
43 config.standalone_build = @CLANG_BUILT_STANDALONE@
44 config.ppc_linux_default_ieeelongdouble = @PPC_LINUX_DEFAULT_IEEELONGDOUBLE@
45 config.have_llvm_driver = @LLVM_TOOL_LLVM_DRIVER_BUILD@
46 config.substitutions.append(("%llvm-version-major", "@LLVM_VERSION_MAJOR@"))
48 import lit.llvm
49 lit.llvm.initialize(lit_config, config)
51 # Let the main config do the real work.
52 lit_config.load_config(
53 config, os.path.join(config.clang_src_dir, "test/lit.cfg.py"))