llvm.org GIT mirror llvm / 90275ea
llvm-lit: Inject the lit module path at the beginning of sys.path, just in case the user has another lit somewhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155131 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 7 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 llvm_obj_root = "@LLVM_BINARY_DIR@"
88
99 # Make sure we can find the lit package.
10 sys.path.append(os.path.join(llvm_source_root, 'utils', 'lit'))
10 sys.path.insert(0, os.path.join(llvm_source_root, 'utils', 'lit'))
1111
1212 # Set up some builtin parameters, so that by default the LLVM test suite
1313 # configuration file knows how to find the object tree.
1717 'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
1818 }
1919
20 clang_site_config = os.path.join(llvm_obj_root, 'tools', 'clang', 'test', 'lit.site.cfg')
20 clang_site_config = os.path.join(llvm_obj_root, 'tools', 'clang', 'test',
21 'lit.site.cfg')
2122 if os.path.exists(clang_site_config):
2223 builtin_parameters['clang_site_config'] = clang_site_config
2324