mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[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 llvm-svn: 292203
This commit is contained in:
parent
5dedee2c4e
commit
dc18fb4440
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user