Skip to content

Commit

Permalink
[lit] Inject the lit specific config object as 'lit_config' when load…
Browse files Browse the repository at this point in the history
…ing 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188039 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Aug 9, 2013
1 parent 6c749c5 commit 3864982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/lit/lit/TestingConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def load_from_path(self, path, litConfig):
cfg_globals = dict(globals())
cfg_globals['config'] = self
cfg_globals['lit'] = litConfig
cfg_globals['lit_config'] = litConfig
cfg_globals['__file__'] = path
try:
if PY2:
Expand Down

0 comments on commit 3864982

Please sign in to comment.