This is an archive of the discontinued LLVM Phabricator instance.

Remove LIT_SITE_CFG_IN_FOOTER.
ClosedPublic

Authored by thakis on Aug 28 2018, 7:41 AM.

Details

Reviewers
zturner
Summary

It's always replaced with the same (short) static string, so just put that there directly.

No intended behavior change.

Diff Detail

Event Timeline

thakis created this revision.Aug 28 2018, 7:41 AM
zturner accepted this revision.Aug 28 2018, 12:02 PM
This revision is now accepted and ready to land.Aug 28 2018, 12:02 PM
thakis closed this revision.Aug 30 2018, 3:14 PM

r341130 (clang-tools-extra), r341132 (clang), r341134 (lld), and r341135 (llvm). Thanks!

MatzeB added a subscriber: MatzeB.Aug 30 2018, 4:38 PM

I currently see on my machine:

[0/1] Running the LLVM regression tests
llvm-lit: /Users/mbraun/dev/public_llvm/utils/lit/lit/TestingConfig.py:102: fatal: unable to parse config file '/Users/mbraun/dev/public_llvm/build/test/lit.site.cfg.py', traceback: Traceback (most recent call last):
  File "/Users/mbraun/dev/public_llvm/utils/lit/lit/TestingConfig.py", line 89, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/Users/mbraun/dev/public_llvm/build/test/lit.site.cfg.py", line 59, in <module>
    lit.llvm.initialize(lit_config, config)
AttributeError: 'module' object has no attribute 'llvm'

FAILED: test/CMakeFiles/check-llvm
cd /Users/mbraun/dev/public_llvm/build/test && /usr/bin/python2.7 /Users/mbraun/dev/public_llvm/build/./bin/llvm-lit -sv /Users/mbraun/dev/public_llvm/build/test
ninja: build stopped: subcommand failed.

I currently see on my machine:

[0/1] Running the LLVM regression tests
llvm-lit: /Users/mbraun/dev/public_llvm/utils/lit/lit/TestingConfig.py:102: fatal: unable to parse config file '/Users/mbraun/dev/public_llvm/build/test/lit.site.cfg.py', traceback: Traceback (most recent call last):
  File "/Users/mbraun/dev/public_llvm/utils/lit/lit/TestingConfig.py", line 89, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/Users/mbraun/dev/public_llvm/build/test/lit.site.cfg.py", line 59, in <module>
    lit.llvm.initialize(lit_config, config)
AttributeError: 'module' object has no attribute 'llvm'

FAILED: test/CMakeFiles/check-llvm
cd /Users/mbraun/dev/public_llvm/build/test && /usr/bin/python2.7 /Users/mbraun/dev/public_llvm/build/./bin/llvm-lit -sv /Users/mbraun/dev/public_llvm/build/test
ninja: build stopped: subcommand failed.
- import lit
+ import lit.llvm

I have fixed this