1 @LIT_SITE_CFG_IN_HEADER@
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_examples
= @CLANG_BUILD_EXAMPLES@
31 config
.enable_shared
= @ENABLE_SHARED@
32 config
.enable_backtrace
= @ENABLE_BACKTRACES@
33 config
.enable_threads
= @LLVM_ENABLE_THREADS@
34 config
.host_arch
= "@HOST_ARCH@"
35 config
.python_executable
= "@Python3_EXECUTABLE@"
36 config
.use_z3_solver
= lit_config
.params
.get('USE_Z3_SOLVER', "@USE_Z3_SOLVER@")
37 config
.has_plugins
= @CLANG_PLUGIN_SUPPORT@
38 config
.clang_vendor_uti
= "@CLANG_VENDOR_UTI@"
39 config
.llvm_external_lit
= path(r
"@LLVM_EXTERNAL_LIT@")
40 config
.standalone_build
= @CLANG_BUILT_STANDALONE@
41 config
.ppc_linux_default_ieeelongdouble
= @PPC_LINUX_DEFAULT_IEEELONGDOUBLE@
42 config
.have_llvm_driver
= @LLVM_TOOL_LLVM_DRIVER_BUILD@
45 lit
.llvm
.initialize(lit_config
, config
)
47 # Let the main config do the real work.
48 lit_config
.load_config(
49 config
, os
.path
.join(config
.clang_src_dir
, "test/lit.cfg.py"))