OSDN Git Service

[lit] Inject the lit specific config object as 'lit_config' when loading config files.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 9 Aug 2013 00:37:05 +0000 (00:37 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 9 Aug 2013 00:37:05 +0000 (00:37 +0000)
 - 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188039 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index a122b78..d1492af 100644 (file)
@@ -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: