3lit.llvm.initialize(lit_config, config)
4lit.llvm.llvm_config.use_clang([], [], required=
False)
5lit.llvm.llvm_config.use_default_substitutions()
8config.suffixes = [
".test"]
9config.excludes = [
"Inputs"]
10config.test_format = lit.formats.ShTest(
not lit.llvm.llvm_config.use_lit_shell)
11config.test_source_root = config.clangd_source_dir +
"/test"
12config.test_exec_root = config.clangd_binary_dir +
"/test"
18 return [arch.lower() +
"-registered-target" for arch
in arch_string.split()]
21lit.llvm.llvm_config.feature_config([(
"--targets-built", calculate_arch_features)])
24config.substitutions.append(
25 (
"%clangd-benchmark-dir", config.clangd_binary_dir +
"/benchmarks")
28if config.clangd_build_xpc:
29 config.available_features.add(
"clangd-xpc-support")
31if config.clangd_enable_remote:
32 config.available_features.add(
"clangd-remote-index")
34if config.clangd_tidy_checks:
35 config.available_features.add(
"clangd-tidy-checks")
38 config.available_features.add(
"zlib")
43config.environment[
"CLANG_NO_DEFAULT_CONFIG"] =
"1"
def calculate_arch_features(arch_string)