lit/Util.py: Add two functions, checkToolsPath(dir,tools) and whichTools(tools,paths).
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 9 Feb 2011 04:19:06 +0000 (04:19 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 9 Feb 2011 04:19:06 +0000 (04:19 +0000)
commitdf944f1f83420b44e3a41d379c361b797c827b42
treecb8bf2ab59375362b866a0bdec8b2eda3e29eba7
parentb656a11c7050f5cad6f8792d2a6ee29823d1c14d
lit/Util.py: Add two functions, checkToolsPath(dir,tools) and whichTools(tools,paths).

checkToolsPath(dir,tools):
return True if "dir" contains all "tools".

whichTools(tools,paths):
return a directory that contains all "tools" in "paths".
Or return None when all "tools" were not met.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125174 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/Util.py