llvm.org GIT mirror llvm / 54d0430
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292203 91177308-0d34-0410-b5e6-96231b3b80d8 Shoaib Meenai 2 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3838 builtin_parameters['compilerrt_site_basedir'] = \
3939 os.path.join(compilerrt_obj_root, 'test')
4040
41 libcxx_obj_root = os.path.join(llvm_obj_root, 'projects', 'libcxx')
42 if os.path.exists(libcxx_obj_root):
43 builtin_parameters['libcxx_site_config'] = \
44 os.path.join(libcxx_obj_root, 'test', 'lit.site.cfg')
45
46 libcxxabi_obj_root = os.path.join(llvm_obj_root, 'projects', 'libcxxabi')
47 if os.path.exists(libcxxabi_obj_root):
48 builtin_parameters['libcxxabi_site_config'] = \
49 os.path.join(libcxxabi_obj_root, 'test', 'lit.site.cfg')
50
4151 if __name__=='__main__':
4252 from lit.main import main
4353 main(builtin_parameters)