Skip to content

Commit

Permalink
[utils] Add libc++ and libc++abi config to llvm-lit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
smeenai committed Jan 17, 2017
1 parent 1b1ce6e commit 54d0430
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions utils/llvm-lit/llvm-lit.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 54d0430

Please sign in to comment.