Skip to content

Commit

Permalink
lit: Set a base directory for compiler-rt tests
Browse files Browse the repository at this point in the history
Setting this parameter enables llvm-lit to run on source directories for
compiler-rt test suites that implement magic in their lit.cfg.

<rdar://problem/16458307>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205262 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dexonsmith committed Mar 31, 2014
1 parent 694365f commit 3021734
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/llvm-lit/llvm-lit.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ if os.path.exists(lld_obj_root):
builtin_parameters['lld_site_config'] = \
os.path.join(lld_obj_root, 'test', 'lit.site.cfg')

compilerrt_obj_root = os.path.join(llvm_obj_root, 'projects', 'compiler-rt')
if os.path.exists(compilerrt_obj_root):
builtin_parameters['compilerrt_site_basedir'] = \
os.path.join(compilerrt_obj_root, 'test')

if __name__=='__main__':
import lit
lit.main(builtin_parameters)

0 comments on commit 3021734

Please sign in to comment.