[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.

llvm-svn: 188039
This commit is contained in:
Daniel Dunbar 2013-08-09 00:37:05 +00:00
parent e97b673cf5
commit f511d30d8b
1 changed files with 1 additions and 0 deletions

View 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: