[PATCH] D84380: [lit] Support running tests on Windows without GnuWin32.

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 11:27:23 PDT 2020


rnk added a comment.

This ended up breaking my windows buildbot:
http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/18832

It took me a long time to understand the error messages, but what's going on is that C:\Windows\system32 is earlier in the PATH than git's usr/bin coreutils. lit doesn't do any favors, it doesn't print the PATH, so you get an error message like this:

  $ "find" "c:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\test\VFS\Output\module_missing_vfs.m.tmp/mcp" "-name" "A-*.pcm"
  # command stderr:
  File not found - A-*.pcm

If you are really clever, maybe you will realize that this error message comes from Windows `find`, not coreutils `find`.

On the bot, it appears to me in regedit that HKEY_LOCAL_MACHINE\SOFTWARE\GitForWindows is present, but the loop doesn't find anything. Any tips for helping it find it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84380



More information about the llvm-commits mailing list