| 1 |
@LIT_SITE_CFG_IN_HEADER@ |
| 2 |
|
| 3 |
# Variables needed for common clang config. |
| 4 |
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" |
| 5 |
config.target_triple = "@LLVM_TARGET_TRIPLE@" |
| 6 |
config.host_triple = "@LLVM_HOST_TRIPLE@" |
| 7 |
config.python_executable = "@Python3_EXECUTABLE@" |
| 8 |
# Support substitution of the tools and libs dirs with user parameters. This is |
| 9 |
# used when we can't determine the tool dir at configuration time. |
| 10 |
config.clang_tools_dir = lit_config.substitute("@CURRENT_TOOLS_DIR@") |
| 11 |
config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@") |
| 12 |
config.llvm_libs_dir = lit_config.substitute("@LLVM_LIBS_DIR@") |
| 13 |
config.llvm_shlib_dir = "@SHLIBDIR@" |
| 14 |
|
| 15 |
config.clangd_source_dir = "@CMAKE_CURRENT_SOURCE_DIR@/.." |
| 16 |
config.clangd_binary_dir = "@CMAKE_CURRENT_BINARY_DIR@/.." |
| 17 |
config.clangd_build_xpc = @CLANGD_BUILD_XPC@ |
| 18 |
config.clangd_enable_remote = @CLANGD_ENABLE_REMOTE@ |
| 19 |
config.clangd_tidy_checks = @CLANGD_TIDY_CHECKS@ |
| 20 |
config.have_zlib = @LLVM_ENABLE_ZLIB@ |
| 21 |
|
| 22 |
# Delegate logic to lit.cfg.py. |
| 23 |
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py") |