mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
4203b7116a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125168 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
853 B
Python
Executable File
28 lines
853 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Variables configured at build time.
|
|
llvm_source_root = "@LLVM_SOURCE_DIR@"
|
|
llvm_obj_root = "@LLVM_BINARY_DIR@"
|
|
|
|
# Make sure we can find the lit package.
|
|
sys.path.append(os.path.join(llvm_source_root, 'utils', 'lit'))
|
|
|
|
# Set up some builtin parameters, so that by default the LLVM test suite
|
|
# configuration file knows how to find the object tree.
|
|
builtin_parameters = {
|
|
'build_config' : "@CMAKE_CFG_INTDIR@",
|
|
'build_mode' : "@RUNTIME_BUILD_MODE@",
|
|
'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
|
|
}
|
|
|
|
clang_site_config = os.path.join(llvm_obj_root, 'tools', 'clang', 'test', 'lit.site.cfg')
|
|
if os.path.exists(clang_site_config):
|
|
builtin_parameters['clang_site_config'] = clang_site_config
|
|
|
|
if __name__=='__main__':
|
|
import lit
|
|
lit.main(builtin_parameters)
|