ladybird/Tests/ClangPlugins/lit.site.cfg.py.in
Matthew Olsson c739ae3e02 ClangPlugins: Change name of variable used for test compile options
This makes it more clear what it is used for
2024-05-30 09:29:20 -06:00

30 lines
1.1 KiB
Python

@LIT_SITE_CFG_IN_HEADER@
import sys
config.llvm_obj_root = path(r"@LLVM_BINARY_DIR@")
config.llvm_tools_dir = lit_config.substitute(path(r"@LLVM_TOOLS_DIR@"))
config.llvm_libs_dir = lit_config.substitute(path(r"@LLVM_LIBS_DIR@"))
config.llvm_shlib_dir = lit_config.substitute(path(r"@CMAKE_LIBRARY_OUTPUT_DIRECTORY@"))
config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
config.clang_lit_site_cfg = __file__
config.clang_lib_dir = path(r"@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
config.host_triple = "@LLVM_HOST_TRIPLE@"
config.target_triple = "@LLVM_TARGET_TRIPLE@"
config.host_cc = "@CMAKE_C_COMPILER@"
config.host_cxx = "@CMAKE_CXX_COMPILER@"
config.have_zlib = @LLVM_ENABLE_ZLIB@
config.enable_shared = @ENABLE_SHARED@
config.host_arch = "@HOST_ARCH@"
config.python_executable = "@Python3_EXECUTABLE@"
# config.has_plugins = @CLANG_PLUGIN_SUPPORT@
config.plugin_opts = "@CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS@"
config.plugin_includes = "@CLANG_PLUGINS_INCLUDE_DIRECTORIES@"
import lit.llvm
lit.llvm.initialize(lit_config, config)
# Let the main config do the real work.
lit_config.load_config(
config, os.path.join(path("@CMAKE_CURRENT_SOURCE_DIR@"), "lit.cfg.py"))