Add the lld root to llvm-lit, so llvm-lit can be used
authorJoey Gouly <joey.gouly@gmail.com>
Tue, 14 Jan 2014 22:52:24 +0000 (22:52 +0000)
committerJoey Gouly <joey.gouly@gmail.com>
Tue, 14 Jan 2014 22:52:24 +0000 (22:52 +0000)
to run lld tests individually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199264 91177308-0d34-0410-b5e6-96231b3b80d8

utils/llvm-lit/llvm-lit.in

index 6ee12185a3bf4b3df1854f19917abf10f6d995d3..1455b4e037f54e2102202d864e69e4d0e114a570 100755 (executable)
@@ -29,6 +29,11 @@ if os.path.exists(clang_obj_root):
         builtin_parameters['clang_tools_extra_site_config'] = \
             os.path.join(clang_tools_extra_obj_root, 'test', 'lit.site.cfg')
 
+lld_obj_root = os.path.join(llvm_obj_root, 'projects', 'lld')
+if os.path.exists(lld_obj_root):
+    builtin_parameters['lld_site_config'] = \
+        os.path.join(lld_obj_root, 'test', 'lit.site.cfg')
+
 if __name__=='__main__':
     import lit
     lit.main(builtin_parameters)