[llvm-commits] [llvm] r155131 - /llvm/trunk/utils/llvm-lit/llvm-lit.in

Daniel Dunbar daniel at zuster.org
Thu Apr 19 09:31:09 PDT 2012


Author: ddunbar
Date: Thu Apr 19 11:31:08 2012
New Revision: 155131

URL: http://llvm.org/viewvc/llvm-project?rev=155131&view=rev
Log:
llvm-lit: Inject the lit module path at the beginning of sys.path, just in case
the user has another lit somewhere.

Modified:
    llvm/trunk/utils/llvm-lit/llvm-lit.in

Modified: llvm/trunk/utils/llvm-lit/llvm-lit.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/llvm-lit.in?rev=155131&r1=155130&r2=155131&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/llvm-lit.in (original)
+++ llvm/trunk/utils/llvm-lit/llvm-lit.in Thu Apr 19 11:31:08 2012
@@ -8,7 +8,7 @@
 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'))
+sys.path.insert(0, 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.
@@ -18,7 +18,8 @@
     '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')
+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
 





More information about the llvm-commits mailing list