Skip to content

Commit

Permalink
[LIT] Add a clang_tools_extra_site_cfg to match the various other sit…
Browse files Browse the repository at this point in the history
…e_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
  • Loading branch information
dwblaikie committed Sep 4, 2012
1 parent ed0e3a3 commit 7a9572f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions utils/llvm-lit/llvm-lit.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a9572f

Please sign in to comment.