llvm.org GIT mirror llvm / 7a9572f
[LIT] Add a clang_tools_extra_site_cfg to match the various other site_cfg. This doesn't seem ideal, perhaps we could just keep the llvm_site_cfg and have other config (clang and clang-tools-extra) derive their site_cfg from that. Suggestions/complaints/ideas welcome. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163171 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 6 years ago
1 changed file(s) with 9 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1717 'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
1818 }
1919
20 clang_site_config = os.path.join(llvm_obj_root, 'tools', 'clang', 'test',
21 'lit.site.cfg')
22 if os.path.exists(clang_site_config):
23 builtin_parameters['clang_site_config'] = clang_site_config
20 clang_obj_root = os.path.join(llvm_obj_root, 'tools', 'clang')
21
22 if os.path.exists(clang_obj_root):
23 builtin_parameters['clang_site_config'] = \
24 os.path.join(clang_obj_root, 'test', 'lit.site.cfg')
25 clang_tools_extra_obj_root = os.path.join(clang_obj_root, 'tools', 'extra')
26 if os.path.exists(clang_tools_extra_obj_root):
27 builtin_parameters['clang_tools_extra_site_config'] = \
28 os.path.join(clang_tools_extra_obj_root, 'test', 'lit.site.cfg')
2429
2530 if __name__=='__main__':
2631 import lit