[PATCH] D107041: [Flang] Ported test_symbols to Python

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 13 10:59:59 PDT 2021


klausler added a comment.

In D107041#2944118 <https://reviews.llvm.org/D107041#2944118>, @Meinersbur wrote:

> In D107041#2943360 <https://reviews.llvm.org/D107041#2943360>, @awarzynski wrote:
>
>> In D107041#2942220 <https://reviews.llvm.org/D107041#2942220>, @klausler wrote:
>>
>>> When I run tests after this patch, a directory (flang/test/Semantics/__pycache__) gets created in my checked-out source tree.
>>
>> Thanks for drawing our attention to this. Not sure what the best approach would be here. See https://reviews.llvm.org/D108023 for a suggestion.
>
> Nothing to do here. This is normal python behavior and improves execution speed. When running tests, a `__pycache__` is also created in `llvm/utils/lit/lit` since this is where the python source code resides. The `.pyc` files it creates are already in the global `.gitignore`.
>
> If you don't want these to be created, set `PYTHONDONTWRITEBYTECODE=1` in your shell environment.

I don't care whether they are created or not so long as a `git commit -a` doesn't pick them up.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107041/new/

https://reviews.llvm.org/D107041



More information about the llvm-commits mailing list