clang-tools 10.0.0

test/lit.cfg.py
Go to the documentation of this file.
1 import lit.llvm
2
3 lit.llvm.initialize(lit_config, config)
4 lit.llvm.llvm_config.use_clang()
5
6 config.name = 'Clangd'
7 config.suffixes = ['.test']
8 config.excludes = ['Inputs']
9 config.test_format = lit.formats.ShTest(not lit.llvm.llvm_config.use_lit_shell)
10 config.test_source_root = config.clangd_source_dir + "/test"
11 config.test_exec_root = config.clangd_binary_dir + "/test"
12
13 # Clangd-specific lit environment.
14 config.substitutions.append(('%clangd-benchmark-dir',
15 config.clangd_binary_dir + "/benchmarks"))
16
17 if config.clangd_build_xpc:
18 config.available_features.add('clangd-xpc-support')
19