diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-09-04 22:09:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-09-04 22:09:04 +0000 |
commit | 7a9572f8af035a7c9e6a6be236a285c9eef55488 (patch) | |
tree | 869d49e472a8c3066abd302ecf3edde9f7c49896 /utils/llvm-lit | |
parent | ed0e3a31e1dd201d87288c2e73fc74484d2e8c4d (diff) |
[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
Diffstat (limited to 'utils/llvm-lit')
-rwxr-xr-x | utils/llvm-lit/llvm-lit.in | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/utils/llvm-lit/llvm-lit.in b/utils/llvm-lit/llvm-lit.in index 879d18bdc8..768dc5103c 100755 --- a/utils/llvm-lit/llvm-lit.in +++ b/utils/llvm-lit/llvm-lit.in @@ -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 |