mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 05:21:28 +00:00
lit: Set a base directory for compiler-rt tests
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
This commit is contained in:
parent
694365f955
commit
3021734700
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user