mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 14:10:55 +00:00
[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
This commit is contained in:
parent
ed0e3a31e1
commit
7a9572f8af
@ -18,10 +18,15 @@ builtin_parameters = {
|
||||
'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
|
||||
}
|
||||
|
||||
clang_site_config = os.path.join(llvm_obj_root, 'tools', 'clang', 'test',
|
||||
'lit.site.cfg')
|
||||
if os.path.exists(clang_site_config):
|
||||
builtin_parameters['clang_site_config'] = clang_site_config
|
||||
clang_obj_root = os.path.join(llvm_obj_root, 'tools', 'clang')
|
||||
|
||||
if os.path.exists(clang_obj_root):
|
||||
builtin_parameters['clang_site_config'] = \
|
||||
os.path.join(clang_obj_root, 'test', 'lit.site.cfg')
|
||||
clang_tools_extra_obj_root = os.path.join(clang_obj_root, 'tools', 'extra')
|
||||
if os.path.exists(clang_tools_extra_obj_root):
|
||||
builtin_parameters['clang_tools_extra_site_config'] = \
|
||||
os.path.join(clang_tools_extra_obj_root, 'test', 'lit.site.cfg')
|
||||
|
||||
if __name__=='__main__':
|
||||
import lit
|
||||
|
Loading…
Reference in New Issue
Block a user