[llvm] r188039 - [lit] Inject the lit specific config object as 'lit_config' when loading config files.
Daniel Dunbar
daniel at zuster.org
Thu Aug 8 17:37:05 PDT 2013
Author: ddunbar
Date: Thu Aug 8 19:37:05 2013
New Revision: 188039
URL: http://llvm.org/viewvc/llvm-project?rev=188039&view=rev
Log:
[lit] Inject the lit specific config object as 'lit_config' when loading config files.
- Injecting it as 'lit' is gross, since that name should be used to refer to
the actual package. For now both are available so it is possibly to cleanup
test config files incrementally.
Modified:
llvm/trunk/utils/lit/lit/TestingConfig.py
Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=188039&r1=188038&r2=188039&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Thu Aug 8 19:37:05 2013
@@ -75,6 +75,7 @@ class TestingConfig:
cfg_globals = dict(globals())
cfg_globals['config'] = self
cfg_globals['lit'] = litConfig
+ cfg_globals['lit_config'] = litConfig
cfg_globals['__file__'] = path
try:
if PY2:
More information about the llvm-commits
mailing list