Closed gshimansky closed 1 year ago
There's two problems here:
llvm-lit
script needs to be called explicitly with the SYS_PYTHON
executable. Calling it with the local Python executable will result in an error.lit.site.cfg.py.in
template is not used to generate the actual config unless DLLVM_INCLUDE_TESTS
is set to ON
, like it is for the Unix builds. I think (I am not sure) this is what generates the real config; without it the llvm-lit
script complains about being unable to find a test configuration.I verified that at least on Anaconda's fork of this recipe (which is virtually identical), the above steps resolve this issue correctly and all the specified tests execute (and pass).
Yes I tried calling llvm-lit script as just python ..\..\build\bin\llvm-lit.py
and it didn't work for me, so some other modifications are necessary.
PRs welcome :)
@h-vetinari I created a PR and verified in the logs that the tests run correctly (and all pass).
Can you please also update branch 14.x? Someone like me may be trying to build llvm-14, so they may be wondering too whether tests in that version pass or not.
@gshimansky Sure; once the PR is approved I'll create another one for the 14 branch.
Solution to issue cannot be found in the documentation.
Issue
Script bld.bat calls llvm-lit.py but on windows you cannot just call a
.py
file unless an extension association is made between.py
extension and a python interpreter. Instead it is necessary to callpython
explicitly.Installed packages
Environment info