This website requires JavaScript.
Explore
Help
Sign In
RPCS3
/
llvm-mirror
Watch
1
Star
0
Fork
0
You've already forked llvm-mirror
mirror of
https://github.com/RPCS3/llvm-mirror.git
synced
2024-11-25 20:23:11 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
ceddd7eb41
llvm-mirror
/
utils
/
lit
/
lit.py
7 lines
89 B
Python
Raw
Normal View
History
Unescape
Escape
[lit] Update lit.py shebang for Python3 Update shebang to always use Python3 when executing `lit.py` directly. A previous change of mine [1] revealed that we still use Python2 on some bot configurations that invoke `llvm/utils/lit/lit.py` as a script directly (instead of `python3 path/to/lit.py`). [1] https://reviews.llvm.org/D94734 Differential Revision: https://reviews.llvm.org/D95393
2021-01-25 22:46:00 +01:00
#!/usr/bin/env python3
Make lit stop writing pyc files. Many svn-based buildbots seem to be getting stuck continually in tree conflicts due to the output of pyc files. I'm disabling these as a temporary measure in an attempt to get everything stable again. I'll try to remove this code once I understand the problem better. llvm-svn: 313698
2017-09-20 01:50:28 +02:00
[lit] Small cleanups. NFCI Remove unnecessary (argument same as default), cleanup imports, use "pythonic" names for variables, and general formatting.
2019-02-26 07:51:50 +01:00
from
lit
.
main
import
main
[lit] Remove (or allow specific) unused imports Summary: Using Python linter flake8 on the utils/lit reveals several linter warnings designated "F401: Unused import". Fix or silence these warnings. Some of these unused imports are legitimate, while some are part of lit's API. For example, users of lit expect to be able to access `lit.formats.ShTest` in their `lit.cfg`, despite the module hierarchy for that symbol actually being `lit.formats.shtest.ShTest`. To silence linter errors for these lines, include a "noqa" directive. Reviewers: echristo, delcypher, beanz, ddunbar Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D25407 llvm-svn: 283710
2016-10-10 03:22:06 +02:00
[lit] Make main.py a pure Python module Running it directly as a tool, that is what lit.py is for.
2019-10-26 03:51:29 +02:00
if
__name__
==
'
__main__
'
:
[lit] Small cleanups. NFCI Remove unnecessary (argument same as default), cleanup imports, use "pythonic" names for variables, and general formatting.
2019-02-26 07:51:50 +01:00
main
(
)
Reference in New Issue
Copy Permalink