[llvm] r292203 - [utils] Add libc++ and libc++abi config to llvm-lit

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 23:10:55 PST 2017


Author: smeenai
Date: Tue Jan 17 01:10:55 2017
New Revision: 292203

URL: http://llvm.org/viewvc/llvm-project?rev=292203&view=rev
Log:
[utils] Add libc++ and libc++abi config to llvm-lit

This allows us to use bin/llvm-lit to run individual libc++ and
libc++abi tests without having to explicitly specify the site config
paths, similar to other projects.

Differential Revision: https://reviews.llvm.org/D28733

Modified:
    llvm/trunk/utils/llvm-lit/llvm-lit.in

Modified: llvm/trunk/utils/llvm-lit/llvm-lit.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/llvm-lit.in?rev=292203&r1=292202&r2=292203&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/llvm-lit.in (original)
+++ llvm/trunk/utils/llvm-lit/llvm-lit.in Tue Jan 17 01:10:55 2017
@@ -39,6 +39,16 @@ if os.path.exists(compilerrt_obj_root):
     builtin_parameters['compilerrt_site_basedir'] = \
             os.path.join(compilerrt_obj_root, 'test')
 
+libcxx_obj_root = os.path.join(llvm_obj_root, 'projects', 'libcxx')
+if os.path.exists(libcxx_obj_root):
+    builtin_parameters['libcxx_site_config'] = \
+        os.path.join(libcxx_obj_root, 'test', 'lit.site.cfg')
+
+libcxxabi_obj_root = os.path.join(llvm_obj_root, 'projects', 'libcxxabi')
+if os.path.exists(libcxxabi_obj_root):
+    builtin_parameters['libcxxabi_site_config'] = \
+        os.path.join(libcxxabi_obj_root, 'test', 'lit.site.cfg')
+
 if __name__=='__main__':
     from lit.main import main
     main(builtin_parameters)




More information about the llvm-commits mailing list