forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lit.site.cfg.py.in
29 lines (25 loc) 路 1.14 KB
/
lit.site.cfg.py.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@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"))