This is an archive of the discontinued LLVM Phabricator instance.

[lit] Respect LLVM_LIT_TOOLS_DIR when looking for 'tar' on Windows.
ClosedPublic

Authored by ikudrin on Oct 24 2017, 11:44 PM.

Details

Summary

Changes in D38977 expect 'tar' to be found in one of PATH directories.
On Windows, one might opt to use LLVM_LIT_TOOLS_DIR rather than adding
MSYS tools directory to the PATH. In that case, tests for lld failed on run.

Diff Detail

Repository
rL LLVM

Event Timeline

ikudrin created this revision.Oct 24 2017, 11:44 PM
lichray added inline comments.
test/lit.cfg.py
90 ↗(On Diff #120191)

How about just read with tar_version, _ = communicate() and remove the '.wait()'?

ikudrin added inline comments.Oct 25 2017, 4:33 AM
test/lit.cfg.py
90 ↗(On Diff #120191)

I'd redirect your idea to the author of D38977, @pcc.
Anyway, this patch is only about fixing an execution failure on Windows, and nothing more.

zturner accepted this revision.Oct 25 2017, 7:12 AM

We really should be using llvm_config.get_process_output() here, fwiw, but as you said, this patch is just fixing an execution failure.

This revision is now accepted and ready to land.Oct 25 2017, 7:12 AM
This revision was automatically updated to reflect the committed changes.

Thanks! If you don't mind, I'll leave the mentioned improvements to ones who understand python and lit better than me.