[PATCH] D152709: [lit] Avoid os.path.realpath in lit.py due to MAX_PATH limitations on Windows

Nuno Lopes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 07:34:49 PDT 2023


nlopes added a comment.

In D152709#4424510 <https://reviews.llvm.org/D152709#4424510>, @MrTrillian wrote:

> In D152709#4423897 <https://reviews.llvm.org/D152709#4423897>, @nlopes wrote:
>
>> This commit started failing running llvm-lit outside the llvm directory:
>>
>>   $ ~/llvm/build/bin/llvm-lit -vv ~/llvm/llvm/test/Transforms
>>   llvm-lit: /bitbucket/nlopes/llvm/llvm/utils/lit/lit/TestingConfig.py:151: fatal: unable to parse config file '/home/nlopes/llvm/llvm/test/lit.cfg.py', traceback: Traceback (most recent call last):
>>     File "/bitbucket/nlopes/llvm/llvm/utils/lit/lit/TestingConfig.py", line 139, in load_from_path
>>       exec(compile(data, path, "exec"), cfg_globals, None)
>>     File "/home/nlopes/llvm/llvm/test/lit.cfg.py", line 21, in <module>
>>       config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
>>   AttributeError: 'NoneType' object has no attribute 'use_lit_shell'
>>
>> Any idea of what's going on?
>
> I suspect it has to do with the remaining `os.path.realpath` in `llvm\utils\llvm-lit\llvm-lit.in`. How can I repro this?

my ~/llvm dir is a symlink


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152709



More information about the llvm-commits mailing list