[llvm] r197444 - Add the lit site config for unittests to bin/llvm-lit

Reid Kleckner reid at kleckner.net
Mon Dec 16 16:33:36 PST 2013


Author: rnk
Date: Mon Dec 16 18:33:36 2013
New Revision: 197444

URL: http://llvm.org/viewvc/llvm-project?rev=197444&view=rev
Log:
Add the lit site config for unittests to bin/llvm-lit

This missing parameter was causing bin/llvm-lit to run the unittests
from my primary build directory instead of my self-hosting build
directory because llvm-config was on my PATH.

This more closely matches what 'make check' will pass to lit.py.

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=197444&r1=197443&r2=197444&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/llvm-lit.in (original)
+++ llvm/trunk/utils/llvm-lit/llvm-lit.in Mon Dec 16 18:33:36 2013
@@ -15,6 +15,8 @@ sys.path.insert(0, os.path.join(llvm_sou
 builtin_parameters = {
     'build_mode' : "@CMAKE_CFG_INTDIR@",
     'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
+    'llvm_unit_site_config' : os.path.join(llvm_obj_root, 'test', 'Unit',
+                                           'lit.site.cfg')
     }
 
 clang_obj_root = os.path.join(llvm_obj_root, 'tools', 'clang')





More information about the llvm-commits mailing list